Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Record button is missing from Chrome DevTools for NodeJS CPU profiling

I was trying to use Chrome DevTools as usual for recording NodeJS CPU profiling, but this time something was different that there wasn't a record button inside the Profiler property page.

As you can see from the image below, the property page is entirely empty.

missing profiler record button

The software's versions are shown below:

chrome: Version 87.0.4280.66 (Official Build) (64-bit)

node: 10.14.2

OS: Ubuntu 20.04

Does anyone know what is going on? Or, is there an alternative way of profiling NodeJS performance without using Chrome DevTools?

like image 209
Kaonashi Hirota Avatar asked Nov 23 '20 03:11

Kaonashi Hirota


People also ask

How do I use DevTools profiler on 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 read a CPU profile?

Click the Record button in the upper left corner of the profiler tab, move the mouse up and click the button labelled "click" on the page, and then stop the recording (by pressing the record button again). You'll see the CPU profile shown in figure 2.

How do I enable dev tools in Chrome?

From the Chrome menu: Open the Chrome menu and go to “More Tools” > “Developer Tools.” Finally, you can right-click (Windows) or Ctrl-click (Mac) anything on a web page and select “Inspect Element” to open Developer Tools. The Developer Tools panel will open in whatever web page you're on.

How do I debug node scripts in Google Chrome dev tools?

Using Google Chrome DevTools to Debug To start debugging, let's run our application with the --inspect-brk flag. The next step is to head to Chrome, open a new tab, and enter the URL chrome://inspect/ . Click on “Open dedicated DevTools for Node” to start debugging the application.


1 Answers

This is a Chrome bug in v87+ and a fix is pending release: https://bugs.chromium.org/p/chromium/issues/detail?id=1151855

like image 190
zacharyliu Avatar answered Oct 10 '22 00:10

zacharyliu