Fix race condition when there're two flags next to each other

Reviewed By: yungsters

Differential Revision: D7194598

fbshipit-source-id: a76328d63f649403de15503596a179c7baaf7dc3
This commit is contained in:
Alexey Lang 2018-03-09 04:10:00 -08:00 committed by Facebook Github Bot
parent 3e141cb6c9
commit 8803ab2f11
1 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,9 @@ const PerformanceLogger = {
clear() {
timespans = {};
extras = {};
if (__DEV__ && PRINT_TO_CONSOLE) {
infoLog('PerformanceLogger.js', 'clear');
}
},
clearCompleted() {
@ -118,6 +121,9 @@ const PerformanceLogger = {
}
}
extras = {};
if (__DEV__ && PRINT_TO_CONSOLE) {
infoLog('PerformanceLogger.js', 'clearCompleted');
}
},
clearExceptTimespans(keys: Array<string>) {