tracy
tracy copied to clipboard
Sampling mode via WSL2 on Windows 10
I am trying to profile an application in sampling-mode through WSL2 (on a Windows 10 host).
I have elevated the prompt that is running Linux, and I have run the application with sudo
as well, but no sampling events were made available to the profiler.
Is this only possible on Windows 11, or am I missing a step?
Make sure you check the statistics window, as WSL sampling doesn't include timestamps, so there will be no zones drawn on the timeline.
Otherwise, you may need to install WSL from the "store", which may as well be not possible on Win10.
Ah, I see. Sampling symbols are available, it's just not possible to lay them in the timeline. Also, no CPU/thread scheduling events either, correct?
What I was really hoping to also tap into the cache miss rate analysis by running the app this way, but it looks like that is also not captured.
(FYI, I did install Ubuntu 22.04 WSL2 from the Windows Store from Windows 10.)