Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
Visualizing React <Profiler> Output

I am working on a next js react application and trying to see the rendering cycle. I am trying to debug performance issues which is a bit harder to see since the application is hosted in an iFrame that is hidden on start up.

I was able to get the react profiler using the external react debug tools to work but not for the first render since it is in a hidden iFrame. I was able to add the script so that after it starts up it would connect and then run tests based on this article. This gives me a way to visualize the rendering that happens after the start up.

I was able use the Profiler API to output data to the console the render data which gives me an output like:

    ๐Ÿ‘ Profiler result for _app ๐Ÿ‘
โ€‹    ๐Ÿ‘ Profiler result for _app ๐Ÿ‘: 11
โ€‹    Phase: update
โ€‹    Actual Duration: 7.199999749660492
โ€‹    Base Duration: 18.399999856948853
โ€‹    Start Time: 44385.90000003576
โ€‹    Commit Time: 44396.90000003576
โ€‹    Interactions
โ€‹    Set(0)ย {}

I can save that information to a file but I was wondering if anyone knows a way to import that to something that would visualize the data and make it easier to read much like the actual react dev tools.

It is hard to just parse console output, especially as I go deeper in the component tree manually.

Thanks for any help.

about 4 years ago ยท Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!