window.performance.mark and window.performance.measure allow JavaScript to mark sections of its code that are performance relevant. These measurements can be shown as a time line, e.g. the way Chrome does it, or as a call tree.
React uses this when opened with ?react_perf, see this tweet and this commit.
window.performance.markandwindow.performance.measureallow JavaScript to mark sections of its code that are performance relevant. These measurements can be shown as a time line, e.g. the way Chrome does it, or as a call tree.React uses this when opened with
?react_perf, see this tweet and this commit.