Skip to content

RFC: Production React work counters - #284

Open
theKashey wants to merge 1 commit into
reactjs:mainfrom
theKashey:codex/production-work-counters
Open

theKashey wants to merge 1 commit into
reactjs:mainfrom
theKashey:codex/production-work-counters

Conversation

@theKashey

Copy link
Copy Markdown

View rendered text

I would like to propose a little extension of functionality aimed to define observability and improve transparency of React runtime.

Basically:

  • know how many components were updated, and how many were able to bail out early
  • know how many components did render
  • know how many ticks were required for a commit and how many commits were made.
  • how many setStates, context updates or effects had happened

Think a CPU profiler for React.

We are using it (via patch-package) for a year and every improvement we made or every incident we experienced are clearly visible via numbers.

Ask the SRE part of yourself - what do I know about my app, and what should I know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant