【问题标题】:Windows alternative to macOS os_signpost functions – posting custom markers in Intel VTune or VS ProfilerWindows 替代 macOS os_signpost 函数——在 Intel VTune 或 VS Profiler 中发布自定义标记
【发布时间】:2021-04-28 21:41:49
【问题描述】:

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

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

【问题讨论】:

    标签: windows visual-studio-2019 profiler intel-vtune


    【解决方案1】:

    【讨论】:

    • 好消息,不知道那个 API,似乎正是我想要的。因此,为了标记在分析会话中出现的区域,__itt_mark_pt_region 是等效的调用吗?
    • software.intel.com/content/www/us/en/develop/documentation/… __itt_task_begin() 标志着任务的开始。 __itt_task_end() 标记任务的结束。我认为这可能有效。
    猜你喜欢
    • 2020-10-04
    • 1970-01-01
    • 2014-04-04
    • 2020-08-27
    • 1970-01-01
    • 2021-10-26
    • 2022-11-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多