flamegraph

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

commit 880abfb113a902dbc23dd4d9d5b2d34dda3b8f97
parent e4cd06c6e6fd38521e35dceaabb58dcbc50ef1f9
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date:   Fri,  1 Jul 2016 12:05:39 -0700

Merge pull request #93 from stbergmann/master

Support "(anonymous namespace)" in C++ function names
Diffstat:
Mstackcollapse-perf.pl | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl @@ -225,8 +225,9 @@ while (defined($_ = <>)) { if ($func !~ m/\.\(.*\)\./) { # This doesn't look like a Go method name (such as # "net/http.(*Client).Do"), so everything after the first open - # paren is just noise. - $func =~ s/\(.*//; + # paren (that is not part of an "(anonymous namespace)") is + # just noise. + $func =~ s/\((?!anonymous namespace\)).*//; } # now tidy this horrible thing: # 13a80b608e0a RegExp:[&<>\"\'] (/tmp/perf-7539.map)