Skip to content

Commit

Permalink
Clear performance marks after measuring (#22345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn authored Sep 17, 2021
1 parent 1090ccd commit bc9bb87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-devtools-shared/src/PerformanceLoggingUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down

0 comments on commit bc9bb87

Please sign in to comment.