Permalink
Browse files

Fix PerformanceLogger clearing unfinished events

Reviewed By: alexeylang

Differential Revision: D4749516

fbshipit-source-id: 348f1cf51c01b39a410be8b39598e8e98cd52d55
  • Loading branch information...
javache authored and facebook-github-bot committed Mar 22, 2017
1 parent 0ea1ea5 commit 005fbe6aa46d6866cb74bb721b310cee05da0103
Showing with 9 additions and 0 deletions.
  1. +9 −0 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) {

0 comments on commit 005fbe6

Please sign in to comment.