flamegraph

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

commit 54bede2f7d7f2c248f9f8ec8a0459ae7fbc69d9f
parent 044f09b9d5f4f65c83b55b87c574c618aaadc237
Author: Gabriel Corona <gabriel.corona@enst-bretagne.fr>
Date:   Thu, 23 Jul 2015 23:04:13 +0200

Recursive call filter: allow floating point values and better regex handling

Diffstat:
Mstackcollapse-recursive.pl | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/stackcollapse-recursive.pl b/stackcollapse-recursive.pl @@ -37,9 +37,9 @@ my %stacks; while(<>) { chomp; - if(/^(.*)\s([0-9]*)/) { - my @stack = split(/;/, $1); - my $value = $2; + my ($stack_, $value) = (/^(.*)\s+?(\d+(?:\.\d*)?)$/); + if ($stack_) { + my @stack = split(/;/, $stack_); my @result = (); my $i;