mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
99ceb6afba
Summary: In production, we'd like to be able to track the performance metrics of TurboModules. So, I'm introducing a new protocol called `RCTTurboModulePerformanceLogger`. It allows the application to be notified at points during stages of TurboModule creation, and TurboModule method invocation. **Why can't we use `RCTPerformanceLogger`?** `RCTPerformanceLogger` is meant to be used to profile RN initialization. It supports a fixed list of markers. Each marker has a type, and there can only be one instance of it. This isn't suitable for logging events in the TurboModule system. Reviewed By: mdvacca Differential Revision: D20310976 fbshipit-source-id: a49251b325c94f912cd35ab1cd8fc010f2cfc08f