flamegraph

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

commit d03cc99281bd9b22d980e26feb52b05d0e512671
parent a64ac12d4195552cba0b810dedbaddfbc2c4ce64
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date:   Thu,  5 Jan 2012 12:02:35 -0800

Merge pull request #2 from davepacheco/master

flamegraph could escape some illegal XML characters
Diffstat:
Mflamegraph.pl | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/flamegraph.pl b/flamegraph.pl @@ -172,6 +172,8 @@ my $time = 0; foreach (sort @Data) { chomp; my ($stack, $samples) = (/^(.*)\s+(\d+)$/); + $stack =~ s/</(/g; + $stack =~ s/>/)/g; $stack = ",$stack"; next unless defined $samples; flow($last, $stack, $time);