Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: brendangregg/FlameGraph
base: f048d80166
...
head fork: brendangregg/FlameGraph
compare: cd7c0f0eab
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 26, 2013
@timbunce timbunce Avoid problems with "--" in func names by using ";" as internal delim…
…eter

We know ";" is safe because it's the primary input delimiter.
f7c8170
Commits on Mar 27, 2013
@brendangregg Merge pull request #16 from timbunce/flowdelim2
Avoid problems with "--" in func names by using ";" as internal delimeter
cd7c0f0
Showing with 5 additions and 5 deletions.
  1. +5 −5 flamegraph.pl
View
10 flamegraph.pl
@@ -211,15 +211,15 @@ sub flow {
$len_same = $i;
for ($i = $len_a; $i >= $len_same; $i--) {
- my $k = "$last->[$i]--$i";
- # a unique ID is constructed from func--depth--etime;
+ my $k = "$last->[$i];$i";
+ # a unique ID is constructed from "func;depth;etime";
# func-depth isn't unique, it may be repeated later.
- $Node{"$k--$v"}->{stime} = delete $Tmp{$k}->{stime};
+ $Node{"$k;$v"}->{stime} = delete $Tmp{$k}->{stime};
delete $Tmp{$k};
}
for ($i = $len_same; $i <= $len_b; $i++) {
- my $k = "$this->[$i]--$i";
+ my $k = "$this->[$i];$i";
$Tmp{$k}->{stime} = $v;
}
@@ -289,7 +289,7 @@ sub flow {
# Draw frames
foreach my $id (keys %Node) {
- my ($func, $depth, $etime) = split "--", $id;
+ my ($func, $depth, $etime) = split ";", $id;
die "missing start for $id" if !defined $Node{$id}->{stime};
my $stime = $Node{$id}->{stime};

No commit comments for this range

Something went wrong with that request. Please try again.