From 8f3162f25a1597f34c6706e8a2cb95d48fa37eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Inf=C3=BChr?= Date: Wed, 22 Jul 2026 16:19:55 +0200 Subject: [PATCH] Rename maxRetainedSize column --- src/formatters/HeapSnapshotFormatter.ts | 2 +- tests/formatters/HeapSnapshotFormatter.test.js.snapshot | 2 +- tests/tools/memory.test.js.snapshot | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/formatters/HeapSnapshotFormatter.ts b/src/formatters/HeapSnapshotFormatter.ts index 44bf9d4fa8..0a7b42c880 100644 --- a/src/formatters/HeapSnapshotFormatter.ts +++ b/src/formatters/HeapSnapshotFormatter.ts @@ -166,7 +166,7 @@ export class HeapSnapshotFormatter { toString(): string { const sorted = this.#getSortedAggregates(); const lines: string[] = []; - lines.push('id,name,count,selfSize,maxRetainedSize'); + lines.push('id,name,count,selfSize,retainedSize'); for (const info of sorted) { const id = info[stableIdSymbol] ?? ''; diff --git a/tests/formatters/HeapSnapshotFormatter.test.js.snapshot b/tests/formatters/HeapSnapshotFormatter.test.js.snapshot index 43240058e4..03b2416900 100644 --- a/tests/formatters/HeapSnapshotFormatter.test.js.snapshot +++ b/tests/formatters/HeapSnapshotFormatter.test.js.snapshot @@ -1,5 +1,5 @@ exports[`HeapSnapshotFormatter > toString > formats data as CSV and sorts by retained size 1`] = ` -id,name,count,selfSize,maxRetainedSize +id,name,count,selfSize,retainedSize 1,ObjectA,10,0.1 kB,1.0 kB 2,ObjectB,5,0.1 kB,0.5 kB `; diff --git a/tests/tools/memory.test.js.snapshot b/tests/tools/memory.test.js.snapshot index b277a7ca09..95ff9abb39 100644 --- a/tests/tools/memory.test.js.snapshot +++ b/tests/tools/memory.test.js.snapshot @@ -67,7 +67,7 @@ Objects: 4589 Total shallow size: 350 kB Showing 1-10 of 150 (Page 1 of 15). Next page: 1 -id,name,count,selfSize,maxRetainedSize +id,name,count,selfSize,retainedSize 1,(system),1739,115 kB,350 kB 7,Function,1095,34.9 kB,72.2 kB 11,(object shape),769,52.6 kB,53.3 kB @@ -85,7 +85,7 @@ exports[`memory > get_heapsnapshot_details > with default options 1`] = ` Objects: 11940 Total shallow size: 802 kB Showing 1-157 of 157 (Page 1 of 1). -id,name,count,selfSize,maxRetainedSize +id,name,count,selfSize,retainedSize 2,(system),3205,199 kB,655 kB 11,Function,3581,111 kB,237 kB 16,(object shape),2878,181 kB,184 kB @@ -250,7 +250,7 @@ exports[`memory > get_heapsnapshot_details > with objectsRetainedByContexts filt Objects: 148 Total shallow size: 3.5 kB Showing 1-4 of 4 (Page 1 of 1). -id,name,count,selfSize,maxRetainedSize +id,name,count,selfSize,retainedSize 1,system / Context,116,2.5 kB,3.5 kB 3,Function,6,0.2 kB,0.7 kB 2,(compiled code),22,0.5 kB,0.5 kB @@ -262,7 +262,7 @@ exports[`memory > get_heapsnapshot_details > with sharedNativeContext filterName Objects: 558 Total shallow size: 22.9 kB Showing 1-5 of 5 (Page 1 of 1). -id,name,count,selfSize,maxRetainedSize +id,name,count,selfSize,retainedSize 3,(string),443,16.6 kB,16.6 kB 1,(compiled code),85,5.9 kB,9.8 kB 4,(system),12,0.2 kB,0.6 kB