Skip to content

Commit

Permalink
Merge pull request brendangregg#146 from nitsanw/java-frame-detection
Browse files Browse the repository at this point in the history
Improve java frame detection
  • Loading branch information
brendangregg authored Aug 31, 2021
2 parents be7d6b9 + daa09f8 commit 810687f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flamegraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ sub color {
$type = "aqua";
} elsif ($name =~ m:^L?(java|javax|jdk|net|org|com|io|sun)/:) { # Java
$type = "green";
} elsif ($name =~ /:::/) { # Java, typical perf-map-agent method separator
$type = "green";
} elsif ($name =~ /::/) { # C++
$type = "yellow";
} elsif ($name =~ m:_\[k\]$:) { # kernel annotation
$type = "orange";
} elsif ($name =~ /::/) { # C++
Expand Down

0 comments on commit 810687f

Please sign in to comment.