mirror of
https://github.com/status-im/react-native.git
synced 2025-02-21 13:48:13 +00:00
Add point to InitializeCore
Summary: Adding perf marker point to the beginning of InitializeCore. Reviewed By: TheSavior Differential Revision: D10496350 fbshipit-source-id: 56c77414e0c31cf918377e95e3b0c236a5672e35
This commit is contained in:
parent
0ceda1b0a5
commit
a07de97754
@ -25,6 +25,9 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
const startTime =
|
||||
global.nativePerformanceNow != null ? global.nativePerformanceNow() : null;
|
||||
|
||||
const {polyfillObjectProperty, polyfillGlobal} = require('PolyfillFunctions');
|
||||
|
||||
if (global.GLOBAL === undefined) {
|
||||
@ -216,3 +219,8 @@ if (__DEV__) {
|
||||
JSInspector.registerAgent(require('NetworkAgent'));
|
||||
}
|
||||
}
|
||||
|
||||
if (startTime != null) {
|
||||
const PerformanceLogger = require('PerformanceLogger');
|
||||
PerformanceLogger.markPoint('InitializeCoreStartTime', startTime);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user