-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Test renderer auto profiling #164476
Comments
I only get the message about the long task, and never any follow up. And apparently my linux vm in azure is a bit slow. I know the CPU is not extremely fast but 106ms is a bit surprising. Several reloads, never below 100ms. Doesn't seem like there is any other expensive process in the background
|
It looks like the log won't be saved if we don't find anything "interesting" in it. I wonder whether my high baseline is preventing me from seeing the right kinds of long tasks. I've provoked a lot of slowness in vscode but still not seeing anything else
|
Same for me as well, re-loaded VS Code a couple of times, changed logging level to Note: At one point the base line was 17ms for me and the task took 500ms and still not profile generated.
|
@roblourens @DonJayamanne please check the main log for eventual errors. Also, force a freeze by running "F1 > Force Retokenize" in checker.ts. Tho, note that this only works when profiling has started before the actual freeze (we cannot profile the renderer when it is already frozen) |
Baseline on my linux VM was 42ms and I was able to confirm the profile generation, telemetry events with both snap and deb installs. |
Worked for me too, I could see the profile being generated and the telemetry events. |
Yay, this magically works for me today. However I cannot see the telemetry, will file an issue for that. |
Ignore that, I was looking at Verified as working. |
@roblourens I had telemetry turned off and I could see entries there only after turning it on, reloading and enabling tracing again |
Refs: #163819
Complexity: 4
Create Issue
We have added and extended infrastructure to automatically profile the renderer process and to automatically extract heavy traces. Testing this requires to freeze VS Code - something that shouldn't happen 🙃 To prepare do the following
application.experimental.rendererProfiling
[info] [perf] Render performance baseline is NNms
. This is the "perfBaseline" for your machineTo test this works you need to put the renderer under pressure. Be creating and out on the look but start with a good and easy reliable way to causing a stall
checker.ts
-file here:https://raw.githubusercontent.com/microsoft/TypeScript/main/src/compiler/checker.tsRenderer reported VERY LONG TASK (NNms), starting profiling session
. (A very long task is defined as 10*perfBaseline)[error] [PerfSampleError]|852ms by <<renderer>>
These are synthetic errors and their "stack traces" is the heaviest call path (on potentially many) into the heaviest function.[perf] stored profile to DISK 'file:///var/folders/8y/njkkd6l946z4y9xr1jy3hrnh0000gp/T/exthost-948822.cpuprofile'
unresponsive.sample
-events are sendThe text was updated successfully, but these errors were encountered: