Skip to content

Commit 54afd87

Browse files
authored
fix memory profiling race condition (#211)
1 parent b8e5768 commit 54afd87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export class HeapSnapshotLoader {
7272
}
7373

7474
async buildSnapshot(secondWorker: MessagePort): Promise<JSHeapSnapshot> {
75+
await this.parsingComplete;
76+
7577
this.#snapshot = this.#snapshot || {};
7678

7779
this.#progress.updateStatus('Processing snapshot…');

0 commit comments

Comments
 (0)