flamegraph

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

commit 38a84db2af5271ad71627214643216f0aa86361c
parent 245d975673bcb04e4d67197b65cc01157ee7d7f0
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date:   Tue, 28 Oct 2014 12:38:56 -0700

remove unnecessary precision, reducing file size by ~2%

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

diff --git a/flamegraph.pl b/flamegraph.pl @@ -224,6 +224,7 @@ SVG sub stringTTF { my ($self, $color, $font, $size, $angle, $x, $y, $str, $loc, $extra) = @_; + $x = sprintf "%0.2f", $x; $loc = defined $loc ? $loc : "left"; $extra = defined $extra ? $extra : ""; $self->{svg} .= qq/<text text-anchor="$loc" x="$x" y="$y" font-size="$size" font-family="$font" fill="$color" $extra >$str<\/text>\n/;