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