在macOS上,os_signpost函数可用于创建出现在XCode仪器探查器时间线中的标记。这对于发现分析会话中的某些事件非常有帮助。
对于跨平台的C++应用程序,我希望在使用英特尔VTune或Visual Studio2019 profiler的Windows上具有相同的功能。是否有API允许Windows上的至少一个探查器进行类似的操作?
发布于 2021-05-07 17:25:01
您可以在VTune中使用规范和跟踪技术API。有关更多详细信息,请参阅以下链接:https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis.html
https://stackoverflow.com/questions/67308304
复制相似问题