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 : https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis.html