From cb1d1d651a060a7948b79c6f7ec74322d33a57c0 Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Tue, 23 Jun 2026 12:18:47 +0900
Subject: [PATCH] enhance(dev): tweak report-backend-memory
---
.github/scripts/backend-memory-report.mjs | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/.github/scripts/backend-memory-report.mjs b/.github/scripts/backend-memory-report.mjs
index c06ca4cd3f..1eff258bb2 100644
--- a/.github/scripts/backend-memory-report.mjs
+++ b/.github/scripts/backend-memory-report.mjs
@@ -21,9 +21,10 @@ const phases = [
const metrics = [
'HeapUsed',
'HeapTotal',
- 'External',
'Pss',
'Private_Dirty',
+ 'VmRSS',
+ 'External',
];
function formatNumber(value) {
@@ -34,11 +35,6 @@ function formatMemory(valueKiB) {
return `${formatNumber(valueKiB / 1024)} MB`;
}
-function formatMemoryWithSpread(valueKiB, spreadKiB) {
- if (spreadKiB == null) return formatMemory(valueKiB);
- return `${formatMemory(valueKiB)} ± ${formatMemory(spreadKiB)}`;
-}
-
function formatPercent(value) {
return `${formatNumber(value)}%`;
}
@@ -115,7 +111,7 @@ function renderTable(base, head, phase) {
const baseSpread = getSampleSpread(base, phase, metric);
const headSpread = getSampleSpread(head, phase, metric);
- lines.push(`| ${metric} | ${formatMemoryWithSpread(baseValue, baseSpread)} | ${formatMemoryWithSpread(headValue, headSpread)} | ${formatDiff(baseValue, headValue)} | ${formatDiffPercent(baseValue, headValue)} |`);
+ lines.push(`| ${metric} | ${formatMemory(baseValue)}
± ${formatMemory(baseSpread)} | ${formatMemory(headValue)}
± ${formatMemory(headSpread)} | ${formatDiff(baseValue, headValue)} | ${formatDiffPercent(baseValue, headValue)} |`);
}
return lines.join('\n');