Skip to content

Commit 77f4873

Browse files
misc cleanups
1 parent c93c139 commit 77f4873

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

test/integration/node-specific/resource_tracking_script_builder.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ export async function runScriptAndReturnHeapInfo(
144144

145145
log('fetching messages 3: ', ending);
146146

147-
const startingMemoryUsed = starting.value[0].startingMemoryUsed;
148-
const endingMemoryUsed = ending.value[0].endingMemoryUsed;
147+
const {
148+
value: [{ startingMemoryUsed }]
149+
} = starting;
150+
const {
151+
value: [{ endingMemoryUsed }]
152+
} = ending;
149153

150154
const {
151155
value: [{ clientsInMemory }]

test/tools/fixtures/heap_resource_script.in.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ async function main() {
6464
process.send({ clientsInMemory });
6565

6666
log('clients instances in memory sent.');
67-
// const start = now();
68-
// v8.writeHeapSnapshot(`${name}.heapsnapshot.json`);
69-
// const end = now();
70-
71-
// log(`heap snapshot written in ${end - start}ms. script exiting`);
7267
}
7368

7469
main()

0 commit comments

Comments
 (0)