【问题标题】:Visual Studio 2012 Performance Profiler attach to a remote processVisual Studio 2012 Performance Profiler 附加到远程进程
【发布时间】:2023-03-11 11:42:02
【问题描述】:

我正在尝试调试虚拟机上的性能问题。有没有办法在 Visual Studio 2012 中做到这一点?

在“调试”>“附加到进程”中,您可以附加来自 VM 的进程以进行调试。我在分析 > 探查器 > 附加/分离选项上看不到类似的选项..

有什么办法可以启用吗?有没有免费的类似分析工具?

注意:我可以在 VM 上安装 VS 2012,只是希望有更简单的方法..

【问题讨论】:

    标签: visual-studio-2012 performance-testing


    【解决方案1】:

    Visual Studio 允许远程调试,但不允许远程分析

    我会根据 Visual Studio DVD 附带的目标架构将Visual studio standalone profiler X86 或 X64 安装到虚拟机上,运行命令以附加 Profiler,导航要调试的应用场景,生成 Visual Studio 性能文件(VSP 或 VSPX)(不要忘记打包符号)

    将 VSP 或 VSPX 文件复制到您的 DEV PC 并查找热点!

    应得的信用: Visual studio 2012 profiling remotely debugged process

    【讨论】:

    • 请在我们的回答中添加链接中的一些细节。谢谢!
    【解决方案2】:

    无法检查 VS2012 但 VS2105 有这个 Debug->Profiler->Performance explorer->Attach

    【讨论】:

      猜你喜欢
      • 2011-03-31
      • 2011-09-20
      • 1970-01-01
      • 2014-08-27
      • 1970-01-01
      • 1970-01-01
      • 2012-01-11
      • 2018-08-04
      • 2017-06-22
      相关资源
      最近更新 更多