-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HeapProfiler.collectGarbage implementation
Summary: In Chrome, there's a garbage can icon in the memory profiler page that you can click to force a garbage collection. Hermes was previously not responding to that button. Add support for this inspector message type. The collection it starts is fully synchronous and will block JS from running. It typically completes quite fast for small heaps, and about 1 second for heaps over 100 MB big. Changelog: [Internal][Added] Add support for garbage collection during heap profiling with Hermes Reviewed By: neildhar Differential Revision: D24349262 fbshipit-source-id: fe62b8df4d2b67ab3930e5d57f94478b2a88a549
- Loading branch information
1 parent
2a3c26e
commit 3c154c8
Showing
4 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters