Skip to content

Commit

Permalink
Improve java frame detection
Browse files Browse the repository at this point in the history
- Detect common perf-map-agent method separator ':::' (after stackcollapse-perf.pl tidyup replacing ';' with ':').
- Detect common prefix detection of 'jdk', which is a post jdk9 jdk package.
  • Loading branch information
nitsanw committed Oct 9, 2017
1 parent a8d807a commit 88f6cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flamegraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,10 @@ sub color {
$type = "green";
} elsif ($name =~ m:_\[i\]$:) { # inline annotation
$type = "aqua";
} elsif ($name =~ m:^L?(java|org|com|io|sun)/:) { # Java
} elsif ($name =~ m:^L?(java|org|com|io|sun|jdk)/:) { # 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
Expand Down

0 comments on commit 88f6cfe

Please sign in to comment.