https://github.com/python/cpython/commit/cf7e9108bdb18f52507909f2f9d659f951a4a1fe
commit: cf7e9108bdb18f52507909f2f9d659f951a4a1fe
branch: main
author: Pablo Galindo Salgado <[email protected]>
committer: pablogsal <[email protected]>
date: 2026-08-25T23:33:18+01:00
summary:

gh-154089: Hide unavailable replay efficiency (#154092)

files:
A Misc/NEWS.d/next/Library/2026-07-19-11-20-00.gh-issue-154089.Vp2qHx.rst
M Lib/profiling/sampling/_flamegraph_assets/flamegraph.js

diff --git a/Lib/profiling/sampling/_flamegraph_assets/flamegraph.js 
b/Lib/profiling/sampling/_flamegraph_assets/flamegraph.js
index e055801a405e36f..d66da0402e52ca1 100644
--- a/Lib/profiling/sampling/_flamegraph_assets/flamegraph.js
+++ b/Lib/profiling/sampling/_flamegraph_assets/flamegraph.js
@@ -955,8 +955,8 @@ function populateProfileSummary(data) {
     : (stats.total_samples ?? data.value ?? 0);
   const duration = stats.duration_sec || 0;
   const sampleRate = stats.sample_rate || (duration > 0 ? totalSamples / 
duration : 0);
-  const errorRate = stats.error_rate || 0;
-  const missedSamples= stats.missed_samples || 0;
+  const errorRate = stats.error_rate;
+  const missedSamples = stats.missed_samples;
 
   const samplesEl = document.getElementById('stat-total-samples');
   if (samplesEl) samplesEl.textContent = formatNumber(totalSamples);
diff --git 
a/Misc/NEWS.d/next/Library/2026-07-19-11-20-00.gh-issue-154089.Vp2qHx.rst 
b/Misc/NEWS.d/next/Library/2026-07-19-11-20-00.gh-issue-154089.Vp2qHx.rst
new file mode 100644
index 000000000000000..ba6ec436954e8e9
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2026-07-19-11-20-00.gh-issue-154089.Vp2qHx.rst
@@ -0,0 +1,2 @@
+Do not show unavailable sampling efficiency statistics in replayed Tachyon
+flamegraphs.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to