Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add support for frames with whitespace

  • Loading branch information...
commit a776fbb0d5cdf5c4eaadea816836567261cb23ad 1 parent c536e6a
@davepacheco davepacheco authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  flamegraph.pl
View
3  flamegraph.pl
@@ -47,6 +47,7 @@
#
# CDDL HEADER END
#
+# 15-Dec-2011 Dave Pacheco Support for frames with whitespace.
# 10-Sep-2011 Brendan Gregg Created this.
use strict;
@@ -170,7 +171,7 @@ sub flow {
my $time = 0;
foreach (sort @Data) {
chomp;
- my ($stack, $samples) = split ' ';
+ my ($stack, $samples) = (/^(.*)\s+(\d+)$/);
$stack = ",$stack";
next unless defined $samples;
flow($last, $stack, $time);
Please sign in to comment.
Something went wrong with that request. Please try again.