From 4a056bc143fbcbe0f3ff374461a0871ac0c9c690 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Wed, 24 Jun 2026 17:27:52 +0900 Subject: [PATCH] chore(dev): tweak backend-memory-report --- .github/scripts/backend-memory-report.mjs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/scripts/backend-memory-report.mjs b/.github/scripts/backend-memory-report.mjs index 77cbeaa072..a04ee187a5 100644 --- a/.github/scripts/backend-memory-report.mjs +++ b/.github/scripts/backend-memory-report.mjs @@ -183,15 +183,15 @@ function renderTable(base, head, phase) { function renderPairedDeltaTable(base, head, phase) { const lines = [ - '| Metric | Δ median | Δ MAD | Δ min | Δ max | Samples |', - '| --- | ---: | ---: | ---: | ---: | ---: |', + '| Metric | Δ median | Δ MAD | Δ min | Δ max |', + '| --- | ---: | ---: | ---: | ---: |', ]; for (const metric of metrics) { const summary = pairedDeltaSummary(base, head, phase, metric); if (summary == null) continue; - lines.push(`| ${metric} | ${formatDeltaMemory(summary.median)} | ${summary.mad == null ? '-' : formatMemory(summary.mad)} | ${formatDeltaMemory(summary.min)} | ${formatDeltaMemory(summary.max)} | ${formatNumber(summary.samples)} |`); + lines.push(`| ${metric} | ${formatDeltaMemory(summary.median)} | ${summary.mad == null ? '-' : formatMemory(summary.mad)} | ${formatDeltaMemory(summary.min)} | ${formatDeltaMemory(summary.max)} |`); } if (lines.length === 2) return null; @@ -439,12 +439,16 @@ function renderJsFootprintSection(base, head) { const lines = [ '### Runtime Loaded JS Footprint', '', + '
Click to show', + '', renderJsFootprintMetricTable(base, head), '', '#### Load Phase Breakdown', '', renderJsFootprintPhaseTable(base, head), '', + '
', + '', ]; for (const block of [ @@ -469,11 +473,11 @@ const lines = [ '', ]; -const summary = measurementSummary(base, head); -if (summary != null) { - lines.push(summary); - lines.push(''); -} +//const summary = measurementSummary(base, head); +//if (summary != null) { +// lines.push(summary); +// lines.push(''); +//} for (const phase of phases) { lines.push(`### ${phase.title}`);