gpt4 book ai didi

performance - 如何使用Visual 2013剖析缓存未命中

转载 作者:行者123 更新时间:2023-12-04 08:52:04 24 4
gpt4 key购买 nike

我正在尝试在Visual Studio 2013上对小型控制台应用程序进行基准测试。

我在检测模式下设置了一个性能 session ,在该模式下,我激活了CPU计数器集合,然后选择了“上一级高速缓存未命中”。

当我获得工作台的报告时,即使查看“添加/删除列”菜单,也看不到任何包含此信息的列。

你能帮助我吗?

提前致谢。

##一些额外的信息

  • 我关注了此博客文章http://blogs.msdn.com/b/mgoldin/archive/2010/06/21/cpu-performance-counters-in-visual-studio-2010-profiler.aspx(并像这样的http://msdn.microsoft.com/en-us/library/bb385772.aspx阅读了MSDN上的文章)
  • 和我的演奏会设置:
  • 最佳答案

    尝试运行时检查输出日志。是否有类似下面的一行?

    Warning VSP2347: The monitor was unable to start the VS performance driver.  Access is denied. Consider using the /Admin:Driver,Start and /Admin:Security options of VSPerfCmd from an elevated environment.  Performance counter data and detection of kernel mode execution is disabled.

    如果是这样,请尝试以管理员身份运行Visual Studio。如果我没有以管理员身份运行,同样的事情也会发生在我身上,则不会出现任何列,并且会显示该消息。

    或者,可以将正在运行的Visual Studio保存为管理员,可以授予任何用户使用性能驱动程序的权限。参见 https://docs.microsoft.com/en-us/visualstudio/profiling/how-to-set-permissions?view=vs-2017

    关于performance - 如何使用Visual 2013剖析缓存未命中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27687422/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com