File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ export async function leakingObjectsInHeapSnapshotFiles(
41
41
const aggregates = baseSnap . aggregatesForDiff ( defs ) ;
42
42
const snapshotDiff = snap . calculateSnapshotDiff ( '' , aggregates ) ;
43
43
44
+ // next base snap is this/current snap
45
+ baseSnap = snap ;
46
+
44
47
const growingDiff : HeapSnapshotDiff = { } ;
45
48
for ( const { addedIndexes, deletedIndexes, ...diff } of Object . values (
46
49
snapshotDiff ,
@@ -81,8 +84,6 @@ export async function leakingObjectsInHeapSnapshotFiles(
81
84
delete totalGrowingDiff [ totalDiffName ] ;
82
85
}
83
86
}
84
-
85
- baseSnap = snap ;
86
87
}
87
88
88
89
return totalGrowingDiff ;
Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ it.skipIf(
51
51
. toMatchInlineSnapshot ( `
52
52
{
53
53
"(compiled code)": {
54
- "addedCount": 24267 ,
55
- "addedSize": 4981944 ,
56
- "countDelta": -19747 ,
54
+ "addedCount": 16020 ,
55
+ "addedSize": 3015968 ,
56
+ "countDelta": -9728 ,
57
57
"name": "(compiled code)",
58
- "removedCount": 44014 ,
59
- "removedSize": 2541944 ,
60
- "sizeDelta": 2440000 ,
58
+ "removedCount": 25748 ,
59
+ "removedSize": 1731144 ,
60
+ "sizeDelta": 1284824 ,
61
61
},
62
62
}
63
63
` ) ;
You can’t perform that action at this time.
0 commit comments