performance π§ͺ
This API is currently only available in React Nativeβs Canary and Experimental channels.
If you want to try it out, please enable the Canary Channel in your app.
The global performance object, as defined in Web specifications.
Reference
Instance propertiesβ
eventCountsβ
See documentation in MDN.
memoryβ
See documentation in MDN.
rnStartupTiming β οΈβ
This is a React Native specific extension.
Provides information about the startup time of the application.
get rnStartupTiming(): ReactNativeStartupTiming;
The ReactNativeStartupTiming interface provides the following fields:
| Name | Type | Description |
|---|---|---|
startTime | number | void | When the React Native runtime initialization was started. |
executeJavaScriptBundleEntryPointStart | number | void | When the execution of the application bundle was started. |
endTime | number | void | When the React Native runtime was fully initialized. |
timeOriginβ
Provides the number of milliseconds from the UNIX epoch until system boot, instead of the number of milliseconds from the UNIX epoch until app startup.
See documentation in MDN.
Instance methodsβ
clearMarks()β
See documentation in MDN.
clearMeasures()β
See documentation in MDN.
getEntries()β
See documentation in MDN.
getEntriesByName()β
See documentation in MDN.
getEntriesByType()β
See documentation in MDN.
mark()β
See documentation in MDN.
measure()β
See documentation in MDN.
now()β
Provides the number of milliseconds from system boot, instead of the number of milliseconds from app startup.
See documentation in MDN.