dillon1000/react

Commit

Only measure "base" times within ProfileMode (#12821)

* Conditionally start/stop base timer only within Profile mode tree
* Added test to ensure ProfilerTimer not called outside of Profiler root
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberScheduler.js ModifiedM packages/react/src/__tests__/ReactProfiler-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…