v8: add GCProfiler support for erm · nodejs/node@c75ad3d · GitHub
Skip to content

Commit c75ad3d

Browse files
IlyasShabiaduh95
authored andcommitted
v8: add GCProfiler support for erm
PR-URL: #61191 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
1 parent ade4fc2 commit c75ad3d

3 files changed

Lines changed: 40 additions & 1 deletion

File tree

doc/api/v8.md

Lines changed: 10 additions & 1 deletion

lib/v8.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,10 @@ class GCProfiler {
488488
return JSONParse(data);
489489
}
490490
}
491+
492+
[SymbolDispose]() {
493+
this.stop();
494+
}
491495
}
492496

493497
module.exports = {
Lines changed: 26 additions & 0 deletions

0 commit comments

Comments
 (0)