From 03841cf08c50bc7033497b7fa9c3a788eb072ed3 Mon Sep 17 00:00:00 2001 From: Alexey Lang Date: Thu, 14 Mar 2019 06:45:25 -0700 Subject: [PATCH] Migrate PerformanceLoggerFlag to scoped performance logger Reviewed By: xyin96 Differential Revision: D14385136 fbshipit-source-id: beaf060866ed5b7dee80e18fcd432e7701cff5d3 --- Libraries/Utilities/createPerformanceLogger.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Libraries/Utilities/createPerformanceLogger.js b/Libraries/Utilities/createPerformanceLogger.js index b432f19c68a..377ab559315 100644 --- a/Libraries/Utilities/createPerformanceLogger.js +++ b/Libraries/Utilities/createPerformanceLogger.js @@ -42,6 +42,7 @@ export type IPerformanceLogger = { markPoint(string, number | void): void, getPoints(): {[key: string]: number}, logPoints(): void, + logEverything(): void, }; const _cookies: {[key: string]: number} = {}; @@ -242,6 +243,12 @@ function createPerformanceLogger(): IPerformanceLogger { infoLog(key + ': ' + this._points[key] + 'ms'); } }, + + logEverything() { + this.logTimespans(); + this.logExtras(); + this.logPoints(); + }, }; return result; }