-
Notifications
You must be signed in to change notification settings - Fork 743
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
🐛 BUG: Wrangler hangs when recording profile in Chrome inspector #4409
Comments
Have you tried this with Wrangler's hosted devtools? (Run |
I see the same behavior with the hosted devtools (https://devtools.devprod.cloudflare.dev/js_app?theme=systemPreferred&ws=localhost%3A9229%2Fws&debugger=true) |
Sorry for the late reply. In the hosted devtools (https://devtools.devprod.cloudflare.dev/js_app?theme=systemPreferred&ws=127.0.0.1%3A9229%2Fws&debugger=true), I don't see an Application tab at all. |
Ah apologies, you'll need to open Chrome's regular DevTools on our hosted DevTools... 😅 The |
Hey again! Were you able to make any progress narrowing down what caused the hanging? For the incomplete profiles, could you try sending lots of requests to the routes? That should help build a better picture for those bottom two tables. |
Hey there, I was getting this exact same issue. I would try and profile my application spinup, and after one or two refreshes, it locks up. I moved over to my windows PC and it works no problem. Only seeing this issue on my Mac with the following specs: Which Cloudflare product(s) does this pertain to? What version(s) of the tool(s) are you using? What version of Node are you using? What operating system are you using? One question I had was the self time is 0ms for each function, and the ms is added up beside program. is this how it is supposed to read? It is similar to @ericmatthys profile screenshots. I was expecting to see self time for each function called. |
@ssollows - it would be great if you were able to provide a reproduction that we could debug. |
Hey! 👋 Thanks for the additional information. I was able to reproduce the |
I'm seeing both these issues (the hanging, as well as the CPU Profiling seems completely broken atm. |
The fix for this should be released in the next version of Wrangler |
Which Cloudflare product(s) does this pertain to?
Pages
What version(s) of the tool(s) are you using?
wrangler 3.15.0
What version of Node are you using?
18.16.0
What operating system are you using?
macOS Sonoma 14.1
Describe the Bug
Using the Chrome inspector, I have tried recording a profile both through the Performance tab as well as the deprecated Profiler tab (https://developer.chrome.com/blog/new-in-devtools-114/#js-profiler). After I click to start recording, I'll make a request to a worker / pages function, but the request hangs and never responds. If I try to stop recording in the Chrome inspector, that also seems to hang forever.
chrome://inspect
.debugger;
statements that might be interfering.Let me know what I can do to help track down this issue as it seems impossible to record a CPU profile right now to diagnose some performance issues.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: