Fix the inconsistency in the timestamps for markerStart and markerEnd

Summary: There was in inconsistency in the timestamps used for markerStart and markerEnd, resulting in negative duration being reported in the Scuba table.

Reviewed By: nubbel

Differential Revision: D22791255

fbshipit-source-id: a4a16c6583974a0423b12805fb8d1a22af44cf5c
This commit is contained in:
Nicole Stiliyan Vukadinova
2020-07-28 07:21:29 -07:00
committed by Facebook GitHub Bot
parent 9c693b12c3
commit a37d48d67e

View File

@@ -46,9 +46,12 @@ if (process.env.NODE_ENV === 'development' && os.platform() === 'darwin') {
global.electronRequire('mac-ca');
}
const [s, ns] = process.hrtime();
const launchTime = s * 1e3 + ns / 1e6;
const logger = initLogger(store);
QuickPerformanceLogger.markerStart(FLIPPER_QPL_EVENTS.STARTUP);
QuickPerformanceLogger.markerStart(FLIPPER_QPL_EVENTS.STARTUP, 0, launchTime);
enableMapSet();