tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Thread IDs instead of names when profiling context switches on Windows

Open niello opened this issue 6 months ago • 2 comments

Version 0.10.0 Windows 11 MSVC 2022 17.7.6

  1. Create std::thread
  2. Set its name with ::SetThreadDescription(::GetCurrentThread(), SomeName.c_str());
  3. Run regularly, without context switching profiling
  4. Connect tracy
  5. Thread names are present as they were set in p.2
  6. Run Visual Studio under administrator to obtain required privileges on debugged app
  7. Run app under Visual Studio debugger
  8. Connect tracy
  9. Threads created in p.1 have numeric IDs instead of names. Main thread and Tracy threads have names

image image

niello avatar Dec 26 '23 19:12 niello