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:
Emily Janzer 2018-10-22 16:08:28 -07:00 committed by Facebook Github Bot
parent 0ceda1b0a5
commit a07de97754

View File

@ -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);
}