flamegraph

Fork of flamegraph without J***S*****.
git clone git://git.laack.co/flamegraph.git
Log | Files | Refs | README

commit 24b1224751f8596ffcb5d0c129493891d1ada109
parent 9e004846b0f25a4c3f957580844b0771720e790b
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date:   Sun, 16 Jun 2013 18:47:00 -0700

Merge pull request #22 from toddlipcon/master

Fixups for stackcollapse-perf
Diffstat:
Mstackcollapse-perf.pl | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl @@ -75,13 +75,17 @@ foreach (<>) { # Note the details skipped below, and customize as desired - next if m/:.*:/; # skip summary lines + if (m/:.*:\s$/) { + # skip summary lines + next; + } - if (/^\s*\w+ (\w+) (\S+)/) { + if (/^\s*\w+\s*(.+) (\S+)/) { my ($func, $mod) = ($1, $2); - next if $func =~ /\(/; # skip process names - next unless $mod =~ /kernel/; # skip non-kernel + next if $func =~ /^\(/; # skip process names unshift @stack, $func; + } else { + warn "Unrecognized line: $_"; } }