flamegraph

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

commit 71e5a78e835a59b4b0f2f5c6ce6fa34f22c10f77
parent a1849b151439db5772f504a83c8ff87f7fb76def
Author: Tim Bunce <Tim.Bunce@pobox.com>
Date:   Sun,  2 Aug 2015 19:57:22 +0100

Fix search to work if the nameattr href is being used

Diffstat:
Mflamegraph.pl | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/flamegraph.pl b/flamegraph.pl @@ -796,6 +796,13 @@ my $inc = <<INC; func = func.substr(3); func = func.replace(/ .*/, ""); var r = find_child(e, "rect"); + if (r == null) { + // the rect might be wrapped in an anchor + // if nameattr href is being used + if (r = find_child(e, "a")) { + r = find_child(r, "rect"); + } + } } if (func != null && r != null && func.match(re)) {