commit 81bed59123a088d6ce4ad4d3a99ac10fd3495b10
parent 6a2b684549750a6e93a11fe2b0e25be738f22379
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date: Fri, 24 Oct 2014 14:59:12 -0700
getSubStringLength() errors with whitespace strings
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flamegraph.pl b/flamegraph.pl
@@ -449,7 +449,7 @@ my $inc = <<INC;
t.textContent = txt;
// Fit in full text width
- if (t.getSubStringLength(0, txt.length) < w)
+ if (/^ *\$/.test(txt) || t.getSubStringLength(0, txt.length) < w)
return;
for (var x=txt.length-2; x>0; x--) {