react-native-macos/ReactCommon/jsiexecutor/jsireact
Xin Chen c1023c73b0 Add performance.reactNativeStartupTiming API
Summary:
This diff adds the `performance.reactNativeStartupTiming` API to the performance global object for RN. This property does not exist in web, and we are free to make up our own list of properties in the startup metrics to track RN app startup process. In our case, we have the following six properties to begin with (we may extend and add more to this list in the future):

```
- `(start|end)Time`: The time ‘zero’ for the startup timing and the end of app startup. RN has no knowledge of app start time, which will be provided by the platform. The `endTime` will be the time when the first JS bundle finishes executing (Note that RN supports multiple JS bundles, which can be loaded async)
  - `executeJavaScriptBundleEntryPoint(Start|End)`: The time for RN to execute the JS entry point (and finish all sync job)

```

Changelog:
[General][Added] - Add new JS performance API to support getting RN app startup timings

Reviewed By: rshest

Differential Revision: D43326564

fbshipit-source-id: 7b4c7cae70ff64ba1714a1630cd5e183df6c06b0
2023-03-02 20:04:42 -08:00
..
JSIExecutor.cpp Add performance.reactNativeStartupTiming API 2023-03-02 20:04:42 -08:00
JSIExecutor.h Unify native performanceNow implementation across platforms 2022-12-28 11:03:14 -08:00
JSINativeModules.cpp Add performance.reactNativeStartupTiming API 2023-03-02 20:04:42 -08:00
JSINativeModules.h Replace folly::Optional with std::optional (#35436) 2022-11-28 02:08:12 -08:00