diff --git a/Libraries/Utilities/PerformanceLogger.js b/Libraries/Utilities/PerformanceLogger.js index 053abb9ae..e0f0ccbe3 100644 --- a/Libraries/Utilities/PerformanceLogger.js +++ b/Libraries/Utilities/PerformanceLogger.js @@ -98,6 +98,15 @@ var PerformanceLogger = { extras = {}; }, + clearCompleted() { + for (var key in timespans) { + if (timespans[key].totalTime) { + delete timespans[key]; + } + } + extras = {}; + }, + clearExceptTimespans(keys) { timespans = Object.keys(timespans).reduce(function(previous, key) { if (keys.indexOf(key) !== -1) {