mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
* Reset ReactProfilerTimer's DEV-only Fiber stack after an error * Added ReactNoop functionality to error during "complete" phase * Added failing profiler stack unwinding test * Potential fix for unwinding time bug * Renamed test * Don't record time until complete phase succeeds. Simplifies unwinding. * Expanded ReactProfilerDevToolsIntegration-test coverage a bit * Added unstable_flushWithoutCommitting method to noop renderer * Added failing multi-root/batch test to ReactProfiler-test * Beefed up tests a bit and added some TODOs * Profiler timer differentiates between batched commits and in-progress async work This was a two-part change: 1) Don't count time spent working on a batched commit against yielded async work. 2) Don't assert an empty stack after processing a batched commit (because there may be yielded async work) This is kind of a hacky solution, and may have problems that I haven't thought of yet. I need to commit this so I can mentally clock out for a bit without worrying about it. I will think about it more when I'm back from PTO. In the meanwhile, input is welcome. * Removed TODO * Replaced FiberRoot map with boolean * Removed unnecessary whitespace edit