Fix logging JSAppRequireTime

Reviewed By: andreicoman11

Differential Revision: D2690760

fb-gh-sync-id: 41e88c48deec05539e7681862d794ed650b81bfa
This commit is contained in:
Alexey Lang 2015-11-24 10:18:07 -08:00 committed by facebook-github-bot-7
parent 37f81341a0
commit b4beba5217
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,15 @@ var PerformanceLogger = {
}
return;
}
if (timespans[key].endTime) {
if (__DEV__) {
console.log(
'PerformanceLogger: Attempting to end a timespan that has already ended ',
key
);
}
return;
}
timespans[key].endTime = performanceNow();
timespans[key].totalTime =