tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Sampling mode via WSL2 on Windows 10

Open slomp opened this issue 1 year ago • 2 comments

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?

slomp avatar May 11 '23 21:05 slomp

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.

wolfpld avatar May 11 '23 21:05 wolfpld

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.)

slomp avatar May 12 '23 16:05 slomp