VS2012 和 Performance Analyzer 有什么问题? [英] What 's wrong with VS2012 and Performance Analyzer?
问题描述
我正在尝试做一些性能测试.对一段运行缓慢的代码进行分析...我以管理员身份启动 VS2012 Premium,加载我的解决方案并转到分析 - 启动性能向导",我立即看到一个对话框,内容为:
I am trying to do some perf. analysis on a piece of code that is dog slow... I start VS2012 Premium as Admin, load my solution and the go to 'Analyze - Launch Performance Wizard' Immediately I am shown a dialog that says:
Could not load file or assembly 'VSPerfReader.DLL' or one of its dependencies.
太棒了!该文件位于此处:
Awesome! The file is located here:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools
顺便说一句,我可以从开始"启动 Windows 性能分析器(独立).
I can start Windows Performance Analyzer (standalone) from 'start' just fine btw.
推荐答案
遇到了同样的问题,将以下行添加到我的系统路径变量并重新启动 Visual Studio 即可解决问题.
Had the same issue, adding the following line to my system path variable and restarting visual studio did the trick.
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools
在解决方案的评论中感谢 Ade Miller.
Credit to Ade Miller in the comment for the solution.
这篇关于VS2012 和 Performance Analyzer 有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!