Permalink
Browse files

add support for frames with whitespace

  • Loading branch information...
1 parent c536e6a commit a776fbb0d5cdf5c4eaadea816836567261cb23ad @davepacheco davepacheco committed Dec 16, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 flamegraph.pl
View
@@ -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);

0 comments on commit a776fbb

Please sign in to comment.