Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why there is no "User timing" section in my Chrome DevTools

Tags:

devtools

According to this article:
Debugging React performance with React 16 and Chrome Devtools.

I want to inspect some performance things of my own website built by React as well. But I cannot see the User timing section in my DevTools. Chrome version with 62.0.3202.89 in my computer, am I missing something?

enter image description here

like image 781
Carr Avatar asked Dec 25 '17 16:12

Carr


People also ask

How do I fix dev tools in Chrome?

# Open the Issues tab Open DevTools. Click the Go to Issues button in the yellow warning bar. Alternatively, select Issues from the More tools menu. Once you're on the Issues tab, click the Reload page button if necessary.

How do I use DevTools Performance tab in Chrome?

To access the Performance tab, navigate to the website you want to profile, then open Chrome DevTools by right-clicking and selecting Inspect. Select the Performance tab inside Chrome DevTools. The easiest way to capture a performance profile is by clicking the Start profiling and reload page icon.

How do I customize Chrome developer tools?

Goto chrome://flags/#enable-devtools-experiments , and enable Developer Tools experiments . Select Relaunch Now at the bottom of the page. F12 to Open developer tools, go to Settings , select Experiments tab, and check Allow custom UI themes .

Where is Chrome's developer menu?

Chrome. To open the developer console window on Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac). Alternatively, you can use the Chrome menu in the browser window, select the option "More Tools," and then select "Developer Tools."


3 Answers

I was able to make this work by appending ?react_perf to my url. Not sure why this was so difficult to find... hope it works for you.

https://reactjs.org/blog/2016/11/16/react-v15.4.0.html#profiling-components-with-chrome-timeline

like image 55
Amie Wilt Avatar answered Mar 07 '23 09:03

Amie Wilt


The User Timing tab was removed from chrome in favour of the "Timings" tab which combines some well known timings, such as LCP, OnLoad Event and custom User Timing API marks/measures.

like image 36
Kevin Farrugia Avatar answered Mar 07 '23 07:03

Kevin Farrugia


You need to add ?react_perf to the URL

It's required if you're using React 15 https://reactjs.org/blog/2016/11/16/react-v15.4.0.html#profiling-components-with-chrome-timeline

Not required for React 16 though https://reactjs.org/docs/optimizing-performance.html#profiling-components-with-the-chrome-performance-tab

like image 25
nick722 Avatar answered Mar 07 '23 07:03

nick722