commit 76f475e2454673a2b984b9df911c4f17427361b3
parent 6c8cd6a7966f914fac36ec3ce24eb23129a97d3f
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date: Tue, 28 Oct 2014 18:30:15 -0700
make reduced diff color blue (for cooler)
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/difffolded.pl b/difffolded.pl
@@ -6,7 +6,7 @@
# USAGE: ./difffolded.pl folded1 folded2 | ./flamegraph.pl > diff2.svg
#
# The flamegraph will be colored based on higher samples (red) and smaller
-# samples (green). The frame widths will be based on the 2nd folded file.
+# samples (blue). The frame widths will be based on the 2nd folded file.
# This might be confusing if stack frames disappear entirely; it will make
# the most sense to ALSO create a differential based on the 1st file widths,
# while switching the hues; eg:
diff --git a/flamegraph.pl b/flamegraph.pl
@@ -18,7 +18,7 @@
# and other tools using the stackcollapse variants.
#
# An optional extra column of counts can be provided to generate a differential
-# flame graph of the counts, colored red for more, and green for less. This
+# flame graph of the counts, colored red for more, and blue for less. This
# can be useful when using flame graphs for non-regression testing.
# See the header comment in the difffolded.pl program for instructions.
#
@@ -137,7 +137,7 @@ USAGE: $0 [options] infile > outfile.svg\n
--cp # use consistent palette (palette.map)
--reverse # generate stack-reversed flame graph
--inverted # icicle graph
- --negate # switch differential hues (green<->red)
+ --negate # switch differential hues (blue<->red)
eg,
$0 --title="Flame Graph: malloc()" trace.txt > graph.svg
@@ -320,7 +320,7 @@ sub color_scale {
if ($value > 0) {
$g = $b = int(210 * ($max - $value) / $max);
} elsif ($value < 0) {
- $r = $b = int(210 * ($max + $value) / $max);
+ $r = $g = int(210 * ($max + $value) / $max);
}
return "rgb($r,$g,$b)";
}