mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3c154c8336
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