Skip to content

Commit d2d3605

Browse files
author
Brian Vaughn
committed
Add Lane labels to scheduling profiler marks
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 sceduling profiler package.
1 parent 8af27ae commit d2d3605

File tree

10 files changed

+858
-1725
lines changed

10 files changed

+858
-1725
lines changed

packages/react-devtools-scheduling-profiler/src/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export {
1212
COMPACT_LINE_HEIGHT,
1313
} from 'react-devtools-shared/src/constants.js';
1414

15+
// This number shoudl be kept in sync with TotalLanes const in react-reconciler/src/ReactFiberLane
1516
export const REACT_TOTAL_NUM_LANES = 31;

0 commit comments

Comments
 (0)