-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DevTools reports 100% CPU while doing nothing #21620
Comments
I believe this diagram doesn't show actual CPU usage, but show percentage of time the program spents in CPU. The As a side note: timers are known to have poor performance: #20356 and there's ongoing work to speed them up: #20428 |
I was able to dig up an old screenshot from some Deno profiling I did on November 20th: The CPU chart at the top looks correct in this version. I tried reverting my codebase to an old version (and downgrading to Deno 1.36), and I'm still having the problem in this issue. So that suggests to me something changed in Chromium rather than Deno, that makes Deno profiling a lot less useful. |
I agree, IIRC a couple months back Chrome DevTools devs asked for feedback on this panel, which appears to just been closed: ChromeDevTools/rfcs#2 I suggest to open an issue with them. I'll be happy to coordinate on that. |
Thanks @bartlomieju, opened an issue here: https://bugs.chromium.org/p/chromium/issues/detail?id=1512463 |
See #24877 (comment) for a workaround/fix that is just as applicable to this issue. |
This issue is still occurring on Deno 2.0 and Chromium 129 (the latest version). The people on the Chromium issue tracker didn't want to install Deno to test it. 😂 |
Version: Deno 1.39.0
Chromium: 120.0.6099.71
I created a simple reproduction script,
gg.ts
:Running it with
deno run --inspect gg.ts
and then viewing it in Chromium DevTools, the histogram at the top shows 100% CPU usage.You can check my results in your DevTools here: CPU-20231217T142344.cpuprofile
This started happening recently, and I don't know why. The CPU itself is not close to 100% on any core when viewed with
htop
. The problem does not occur when profiling a normal webpage in the same browser, just when inspecting Deno.The text was updated successfully, but these errors were encountered: