mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0c7defcf64
Summary: `getHeapInfo` was creating and return a `jsi::Object`. This object was not being traced when API tracing was turned on. This resulted in a bug in synth traces, an object was being acted upon without its creation source being logged. In order to prevent this, change the API of `getHeapInfo` to no longer return any objects, or modify other heap contents. This is preferable to having `TracingRuntime` attempt to mimic the operations of two different implementations. ## Changelog: [Internal] [Changed] - Changed `jsi::Instrumentation::getHeapInfo` to use a `std::unordered_map` Reviewed By: mhorowitz Differential Revision: D17273235 fbshipit-source-id: f69860dcc524c2cf501746a41dbac20b4db8c456