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:
parent
3e141cb6c9
commit
8803ab2f11
|
@ -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>) {
|
||||
|
|
Loading…
Reference in New Issue