Skip to content

[DevTools] Scheduling Profiler umbrella task #21866

Closed as not planned
Closed as not planned
@bvaughn

Description

The Scheduling Profiler is currently only accessible at react-scheduling-profiler.vercel.app and very few people know about it. Furthermore, the User Timing API marks that power this profiler are only enabled in the experimental release channel, which almost no one uses. We believe this profiler is an important part of understanding React’s concurrent scheduling and app performance.

Initial release

Follow up work

  • Create a discussion thread on the React 18 Working Group about it and gather usability feedback.
  • Implement some sort of feature detection to hide this panel for react-dom builds that don't have enableSchedulingProfiler enabled? (Maybe only show it for v18+) Probably not a good idea. You might want to import a profile on a non-React site.
  • Follow ups from DevTools: Scheduling profiler: Add vertical scroll bar #22005
  • Try coloring component rendering to match suspense colors for components that suspended. (May require updating the React profiler marks)
  • Revisit the concept of batching. It's currently defined as one or more renders followed by a potential commit (unless the render is explicitly cancelled). I think this doesn't properly take into account interleaved work (e.g. offscreen/idle pre-rendering). Batch ID should probably also take lane(s) into consideration.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions