Skip to content

Commit

Permalink
Add Lane labels to scheduling profiler marks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Brian Vaughn committed Feb 23, 2021
1 parent c62986c commit 668058b
Show file tree
Hide file tree
Showing 11 changed files with 945 additions and 1,814 deletions.
3 changes: 2 additions & 1 deletion packages/react-devtools-scheduling-profiler/src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ export {
COMFORTABLE_LINE_HEIGHT,
COMPACT_LINE_HEIGHT,
} from 'react-devtools-shared/src/constants.js';
import {TotalLanes} from 'react-reconciler/src/ReactFiberLane.new';

export const REACT_TOTAL_NUM_LANES = 31;
export const REACT_TOTAL_NUM_LANES = TotalLanes;
Loading

0 comments on commit 668058b

Please sign in to comment.