Permalink
Browse files

Merge pull request #15 from timbunce/linking2

Fix bug in --nameattr handling
  • Loading branch information...
brendangregg committed Mar 27, 2013
2 parents 19eac63 + 510fb14 commit f048d801661debb8d287da431658e479782f92fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 flamegraph.pl
View
@@ -319,7 +319,7 @@ sub flow {
$info = "$escaped_func ($samples_txt $countname, $pct%)";
}
- my $nameattr = $nameattr{$func} || {};
+ my $nameattr = { %{ $nameattr{$func}||{} } }; # shallow clone
$nameattr->{class} ||= "func_g";
$nameattr->{onmouseover} ||= "s('".$info."')";
$nameattr->{onmouseout} ||= "c()";

0 comments on commit f048d80

Please sign in to comment.