Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: brendangregg/FlameGraph
base: b7250daaf1
...
head fork: brendangregg/FlameGraph
compare: f689c1d660
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 2 additions and 2 deletions.
  1. +2 −2 flamegraph.pl
4 flamegraph.pl
View
@@ -232,7 +232,7 @@ sub flow {
my $ignored = 0;
foreach (sort @Data) {
chomp;
- my ($stack, $samples) = (/^(.*)\s+(\d+)$/);
+ my ($stack, $samples) = (/^(.*)\s+(\d+(?:\.\d*))$/);
unless (defined $samples) {
++$ignored;
next;
@@ -294,7 +294,7 @@ sub flow {
my $y1 = $imageheight - $ypad2 - ($depth + 1) * $frameheight + 1;
my $y2 = $imageheight - $ypad2 - $depth * $frameheight;
- my $samples = $etime - $stime;
+ my $samples = sprintf "%.0f", $etime - $stime;
(my $samples_txt = $samples) # add commas per perlfaq5
=~ s/(^[-+]?\d+?(?=(?>(?:\d{3})+)(?!\d))|\G\d{3}(?=\d))/$1,/g;

No commit comments for this range

Something went wrong with that request. Please try again.