diff --git a/packages/react-devtools-shared/src/PerformanceLoggingUtils.js b/packages/react-devtools-shared/src/PerformanceLoggingUtils.js index 29d81bba911c8..fc10bbd9992e9 100644 --- a/packages/react-devtools-shared/src/PerformanceLoggingUtils.js +++ b/packages/react-devtools-shared/src/PerformanceLoggingUtils.js @@ -27,6 +27,8 @@ function measure(markName: string): void { if (supportsUserTiming) { performance.mark(markName + '-end'); performance.measure(markName, markName + '-start', markName + '-end'); + performance.clearMarks(markName + '-start'); + performance.clearMarks(markName + '-end'); } }