Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No timing breakdown in User Timing section in Performance tab in Chrome dev tools using React 16

I was following this article: https://calibreapp.com/blog/2017-11-28-debugging-react/

I run the profiling but when I click on the the component, I can't see the exact timing, as is mentioned in the article.

I use React 16, I'm in development mode. I also tried ?react_perf but that didn't help (that should be for React 15 anyway)

enter image description here

Thanks for the answers

like image 357
Július Retzer Avatar asked Sep 17 '18 09:09

Július Retzer


2 Answers

For anyone using React v17 or greater, note these timings have been removed from React: https://github.com/facebook/react/pull/18417.

like image 162
Oliver Joseph Ash Avatar answered Sep 25 '22 15:09

Oliver Joseph Ash


It appears to be an issue with the current stable release of Chrome. Using a newer version of Chrome, such as Chrome Dev or Canary, will allow you to use the breakdown until the update makes its way into a stable release of Chrome.

Sources:

  • React Github

  • Associated Chromium Forum Post

like image 44
John Briggs Avatar answered Sep 23 '22 15:09

John Briggs