Skip to content

Commit afe2f4e

Browse files
Change removed functions color
Use purple (with gradients) for both removed and new functions to unify these “out-of-band” cases under a single visual language, meaning no direct comparison is available. This keeps them clearly separate from the red/blue performance axis and simplifies the legend: “purple = this function has no counterpart in the other profile.”
1 parent c2203d6 commit afe2f4e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Lib/profiling/sampling/_flamegraph_assets/flamegraph.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/* Other differential colors */
2626
--diff-neutral: #bdbdbd;
2727
--diff-new: #9575cd;
28-
--diff-elided: #d32f2f;
28+
--diff-elided: #b39ddb;
2929
}
3030

3131
/* --------------------------------------------------------------------------

Lib/profiling/sampling/_flamegraph_assets/flamegraph_template.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,13 @@ <h3 class="section-title">Differential Colors</h3>
407407
</div>
408408
<div class="legend-item">
409409
<div class="legend-color" style="background: var(--diff-new)"></div>
410-
<span class="legend-label">New Function</span>
411-
<span class="legend-range">Not in baseline</span>
410+
<span class="legend-label">New</span>
411+
<span class="legend-range">No counterpart in baseline</span>
412412
</div>
413413
<div class="legend-item">
414414
<div class="legend-color" style="background: var(--diff-elided)"></div>
415-
<span class="legend-label">Elided (Removed)</span>
416-
<span class="legend-range">Not in current</span>
415+
<span class="legend-label">Removed</span>
416+
<span class="legend-range">No counterpart in current</span>
417417
</div>
418418
</div>
419419
</div>

0 commit comments

Comments
 (0)