Windows alternative to macOS os_signpost functions – posting custom markers in Intel VTune or VS Profiler

On macOS the os_signpost functions can be used to create markers that appear in the timeline of the XCode Instruments profiler. This is extremely helpful to spot certain events in a profiling session.

For cross-platform C++ applications, I‘d like to have the same feature on Windows, where I either use Intel VTune or the Visual Studio 2019 profiler. Is there an API allowing something similar with at least one of these profilers on Windows?


  • You could use Instrumentation and Tracing Technology APIs in VTune . Please refer the below link for more details :