bombomby / optick

C++ Profiler For Games
https://optick.dev
MIT License
2.95k stars 296 forks source link

Sampling capture silently fails on Windows #157

Open mropert opened 2 years ago

mropert commented 2 years ago

Trying to get sampling profiles on Windows sometimes results in an empty capture.

It is unclear to me what exactly fails. Here's what I found so far:

There seems to be some quirk of DbgHelp that is fixed by debugging the target once in MSVC. Perhaps logging/reporting the errors returned by the Windows API in the Optick library could shed more light to it?