首页 > 解决方案 > Windows 替代 macOS os_signpost 函数——在 Intel VTune 或 VS Profiler 中发布自定义标记

问题描述

在 macOS 上,这些os_signpost函数可用于创建出现在 XCode Instruments 分析器时间轴中的标记。这对于在分析会话中发现某些事件非常有帮助。

对于跨平台 C++ 应用程序,我希望在 Windows 上具有相同的功能,我可以使用 Intel VTune 或 Visual Studio 2019 分析器。是否有一个 API 允许在 Windows 上与这些分析器中的至少一个类似的东西?

标签: windowsvisual-studio-2019profilerintel-vtune

解决方案


您可以在 VTune 中使用 Instrumentation 和 Tracing Technology API。请参阅以下链接了解更多详情:https ://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis .html


推荐阅读