commit 97e2997d45f32f3292531bbbe2ce6e1b4e41415c
parent 3f56fc0666e374779834b2b759cddb315d4a5fe7
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date: Thu, 17 Aug 2017 13:12:05 -0700
Merge pull request #137 from vincentbernat/fix/remove-unreachable-code
js: remove unreachable code
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/flamegraph.pl b/flamegraph.pl
@@ -960,10 +960,7 @@ my $inc = <<INC;
// sort the matched frames by their x location
// ascending, then width descending
keys.sort(function(a, b){
- return a - b;
- if (a < b || a > b)
- return a - b;
- return matches[b] - matches[a];
+ return a - b;
});
// Step through frames saving only the biggest bottom-up frames
// thanks to the sort order. This relies on the tree property