GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add Lane labels to scheduling profiler marks (#20808) · react/react@e5f6b91

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • react-devtools-scheduling-profiler
      • src
        • EventTooltip.js
        • constants.js
        • import-worker
          • __tests__
            • __snapshots__
              • preprocessData-test.js.snap
            • preprocessData-test.internal.js
            • preprocessData-test.js
          • preprocessData.js
        • types.js
      • webpack.config.js
    • react-reconciler/src
      • ReactFiberLane.new.js
      • ReactFiberLane.old.js
      • SchedulingProfiler.js
      • __tests__
        • SchedulingProfiler-test.internal.js
        • SchedulingProfilerLabels-test.internal.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-devtools-scheduling-profiler/src/EventTooltip.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-scheduling-profiler/src/EventTooltip.js
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ const TooltipReactMeasure = ({
249249
return null;
250250
}
251251

252-
const {batchUID, duration, timestamp, lanes} = measure;
252+
const {batchUID, duration, timestamp, lanes, laneLabels} = measure;
253253
const [startTime, stopTime] = getBatchRange(batchUID, data);
254254

255255
return (
@@ -265,7 +265,11 @@ const TooltipReactMeasure = ({
265265
<div className={styles.DetailsGridLabel}>
266266
Lane{lanes.length === 1 ? '' : 's'}:
267267
</div>
268-
<div>{lanes.join(', ')}</div>
268+
<div>
269+
{laneLabels.length > 0
270+
? `${laneLabels.join(', ')} (${lanes.join(', ')})`
271+
: lanes.join(', ')}
272+
</div>
269273
</div>
270274
</div>
271275
);
Collapse file

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

Copy file name to clipboardExpand all lines: packages/react-devtools-scheduling-profiler/src/constants.js
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.