wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 690 forks source link

Can't get sampling to work on Windows #814

Open dmalyuta opened 5 months ago

dmalyuta commented 5 months ago

For the life of me I cannot figure out why sampling mode is not working for me. I compiled my application with Tracy, zoning / instrumentation modes work as expected, but sampling just does not show up. I am running the application with admin rights, yet all I see is:

image

Am I missing some crucial, simple step, to get sampling to work?

eclazi commented 4 months ago

Does it work with other ETW based sampling profilers like UIforETW or visuals studios CPU profiler? I've had issues before after installing vtune broke access to the cpu sampling functionality

dmalyuta commented 4 months ago

It works fine with visual studio's CPU profiler, and also with Superluminal which is also sampling-based.

eclazi commented 4 months ago

Maybe restart you computer, sometimes the kernel tracing session doesn't get closed correctly if program doesn't exit cleanly