Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix percentages when using --factor #19

Merged
merged 1 commit into from

2 participants

@timbunce

No description provided.

@brendangregg brendangregg merged commit 0016550 into brendangregg:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 6, 2013
  1. @timbunce
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  flamegraph.pl
View
2  flamegraph.pl
@@ -325,7 +325,7 @@ sub flow {
if ($func eq "" and $depth == 0) {
$info = "all ($samples_txt $countname, 100%)";
} else {
- my $pct = sprintf "%.2f", ((100 * $samples) / $timemax);
+ my $pct = sprintf "%.2f", ((100 * $samples) / ($timemax * $factor));
my $escaped_func = $func;
$escaped_func =~ s/&/&/g;
$escaped_func =~ s/</&lt;/g;
Something went wrong with that request. Please try again.