Skip to content

Perf actual React components #5254

Closed
Closed
@gfogle

Description

@gfogle

ReactPerf and ReactDefaultPerf allow for profiling the react internals of ReactCompositeComponent but what I really think would be useful is for React to have a start(), stop() style for perfing the components. Or, possibly just track these methods automatically and spit out warnings.

Some long range uses would be:

  • how many times did you call shouldComponentUpdate? what was the response? if you're always returning true, that might be insightful for your components.
  • how many times did you call setState? could compare this with # of render cycles to track forced renders possibly?

I had started work in #4522 but that just needed to be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions