flamegraph

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

commit 3d1e484a24088bff97c95761f817c7c3f7bf376e
parent 940533b934f438b40193d6dbb69689191fb6d3df
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date:   Tue,  7 Nov 2023 11:10:23 +1100

Merge pull request #163 from stuarteberg/remove-non-ascii

Remove non-utf-8 characters from source code
Diffstat:
Mflamegraph.pl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flamegraph.pl b/flamegraph.pl @@ -1271,7 +1271,7 @@ while (my ($id, $node) = each %Node) { my $chars = int( ($x2 - $x1) / ($fontsize * $fontwidth)); my $text = ""; - if ($chars >= 3) { # room for one char plus two dots + if ($chars >= 3) { # room for one char plus two dots $func =~ s/_\[[kwij]\]$//; # strip any annotation $text = substr $func, 0, $chars; substr($text, -2, 2) = ".." if $chars < length $func;