From a07de97754ec605222ebebf267534d38b3c11df5 Mon Sep 17 00:00:00 2001 From: Emily Janzer Date: Mon, 22 Oct 2018 16:08:28 -0700 Subject: [PATCH] Add point to InitializeCore Summary: Adding perf marker point to the beginning of InitializeCore. Reviewed By: TheSavior Differential Revision: D10496350 fbshipit-source-id: 56c77414e0c31cf918377e95e3b0c236a5672e35 --- Libraries/Core/InitializeCore.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 64af03b6b..6e8a9ee9d 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -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); +}