无法启动 Visual Studio 分析器。

5

我有VS 2010 Ultimate。我创建了一个空的win32控制台解决方案,并用http://pastebin.com/EQJKJK6T替换了其中的cpp文件。我尝试执行CPU采样分析,但出现以下消息:

消息框:

无法启动“exe文件路径”。上一次尝试对应用程序进行分析的操作未成功完成。请重新启动该应用程序。

输出窗口:

Profiling started.
Warning VSP2355: Some Windows counters will not be collected.  Without this data, some performance rules may not fire.
Profiling process ID 4368 (test).
Process ID 4368 has exited.
Data written to e:\projects\test\test101224.vsp.
Profiling finished.
PRF0025: No data was collected. 
Profiling complete.

代码中有一个错误(新版本 http://pastebin.com/anXMPRZu),但这并没有解决性能分析的问题。 - michael nesterenko
嗯,我卸载了VMware Player现在一切都正常了。 - michael nesterenko
你有没有考虑过使用这种方法来找到需要优化的地方? - Mike Dunlavey
1个回答

0

我遇到了这个问题,但奇怪的是它只影响了一个Visual Studio解决方案。使用另一个Visual Studio解决方案的分析器正常工作。

我尝试过:

但都没有起作用。

最后,我修改了注册表,将HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysPlant\Start设置为4并重新启动,然后它开始工作了。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接