dillon1000/react
Commit
Browse files Add Lane labels to scheduling profiler marks (#20808)
This commit changes scheduling profiler marks from a format like '--schedule-render-1' to '--schedule-render-1-Sync' (where 1 is the numeric value of the Sync lane). This will enable the profiler itself to show more meaningful labels for updates and render work. The commit also refactors and adds additional tests for the scheduling profiler package. It also updates the preprocessor to 'support' instant events. These are no-ops for us, but adding recognition of the event type will prevent profiles imported from e.g. Chrome Canary from throwing with an 'unrecognized event' error. (This will resolve issue #20767.)
Changed paths13 files
First-parent comparisonpackages/react-devtools-scheduling-profiler/src/EventTooltip.js ModifiedM packages/react-devtools-scheduling-profiler/src/constants.js ModifiedD packages/react-devtools-scheduling-profiler/src/import-worker/__tests__/__snapshots__/preprocessData-test.js.snap DeletedA packages/react-devtools-scheduling-profiler/src/import-worker/__tests__/preprocessData-test.internal.js AddedD packages/react-devtools-scheduling-profiler/src/import-worker/__tests__/preprocessData-test.js DeletedM packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js ModifiedM packages/react-devtools-scheduling-profiler/src/types.js ModifiedM packages/react-devtools-scheduling-profiler/webpack.config.js ModifiedM packages/react-reconciler/src/ReactFiberLane.new.js ModifiedM packages/react-reconciler/src/ReactFiberLane.old.js ModifiedM packages/react-reconciler/src/SchedulingProfiler.js ModifiedM packages/react-reconciler/src/__tests__/SchedulingProfiler-test.internal.js ModifiedA packages/react-reconciler/src/__tests__/SchedulingProfilerLabels-test.internal.js AddedPatch
Files changed
Rendering syntax-highlighted changes…