Chrome DevTools for coding agents
fix: rename maxRetainedSize column (#2402)
Dominik Inführ75c7048c8003
diff --git a/src/formatters/HeapSnapshotFormatter.ts b/src/formatters/HeapSnapshotFormatter.tsindex 44bf9d4f..0a7b42c8 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.snapshotindex 43240058..03b24169 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,retainedSize1,ObjectA,10,0.1 kB,1.0 kB2,ObjectB,5,0.1 kB,0.5 kB`;diff --git a/tests/tools/memory.test.js.snapshot b/tests/tools/memory.test.js.snapshotindex b277a7ca..95ff9abb 100644--- a/tests/tools/memory.test.js.snapshot+++ b/tests/tools/memory.test.js.snapshot@@ -67,7 +67,7 @@ Objects: 4589Total shallow size: 350 kBShowing 1-10 of 150 (Page 1 of 15).Next page: 1-id,name,count,selfSize,maxRetainedSize+id,name,count,selfSize,retainedSize1,(system),1739,115 kB,350 kB7,Function,1095,34.9 kB,72.2 kB11,(object shape),769,52.6 kB,53.3 kB@@ -85,7 +85,7 @@ exports[`memory > get_heapsnapshot_details > with default options 1`] = `Objects: 11940Total shallow size: 802 kBShowing 1-157 of 157 (Page 1 of 1).-id,name,count,selfSize,maxRetainedSize+id,name,count,selfSize,retainedSize2,(system),3205,199 kB,655 kB11,Function,3581,111 kB,237 kB16,(object shape),2878,181 kB,184 kB@@ -250,7 +250,7 @@ exports[`memory > get_heapsnapshot_details > with objectsRetainedByContexts filtObjects: 148Total shallow size: 3.5 kBShowing 1-4 of 4 (Page 1 of 1).-id,name,count,selfSize,maxRetainedSize+id,name,count,selfSize,retainedSize1,system / Context,116,2.5 kB,3.5 kB3,Function,6,0.2 kB,0.7 kB2,(compiled code),22,0.5 kB,0.5 kB@@ -262,7 +262,7 @@ exports[`memory > get_heapsnapshot_details > with sharedNativeContext filterNameObjects: 558Total shallow size: 22.9 kBShowing 1-5 of 5 (Page 1 of 1).-id,name,count,selfSize,maxRetainedSize+id,name,count,selfSize,retainedSize3,(string),443,16.6 kB,16.6 kB1,(compiled code),85,5.9 kB,9.8 kB4,(system),12,0.2 kB,0.6 kB