Skip to content

Commit 032fbd3

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 032fbd3

File tree

11 files changed

+945
-1812
lines changed

11 files changed

+945
-1812
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ export {
1111
COMFORTABLE_LINE_HEIGHT,
1212
COMPACT_LINE_HEIGHT,
1313
} from 'react-devtools-shared/src/constants.js';
14+
import {TotalLanes} from 'react-reconciler/src/ReactFiberLane.new';
1415

15-
export const REACT_TOTAL_NUM_LANES = 31;
16+
export const REACT_TOTAL_NUM_LANES = TotalLanes;

0 commit comments

Comments
 (0)