From 49b0b0b4dffaef46af63d3f8c9f61db725778b0e Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 18 Dec 2025 14:30:36 +0200 Subject: [PATCH 1/4] Comma separate thousands, fix plurals --- .../sampling/_heatmap_assets/heatmap.js | 4 +++- Lib/profiling/sampling/heatmap_collector.py | 18 ++++++++++-------- Lib/profiling/sampling/sample.py | 4 ++-- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Lib/profiling/sampling/_heatmap_assets/heatmap.js b/Lib/profiling/sampling/_heatmap_assets/heatmap.js index 8ac4ef43e53b37..3869a07bd2586e 100644 --- a/Lib/profiling/sampling/_heatmap_assets/heatmap.js +++ b/Lib/profiling/sampling/_heatmap_assets/heatmap.js @@ -598,10 +598,12 @@ function populateBytecodePanel(panel, button) { else if (specPct >= 33) specClass = 'medium'; // Build specialization summary + const instruction_word = instructions.length === 1 ? 'instruction' : 'instructions'; + const sample_word = totalSamples === 1 ? 'sample' : 'samples'; let html = `