我有 VS 2010 Ultimate。我创建了空的 win32 控制台解决方案,并用 http://pastebin.com/EQJKJK6T 替换了它的 cpp 文件我尝试执行 CPU 采样分析。但由于某种原因,我收到以下消息
消息框:
Could not launch 'path to exe file'. Previous attempt to profile the application finished unsuccessfully. Please restart the application.
输出窗口:
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.
最佳答案
我遇到了这个问题,但奇怪的是它只影响了一个 Visual Studio 解决方案。将探查器与另一个 Visual Studio 解决方案一起使用效果很好。
我试过:
但都没有奏效。
到底我amended the registry , 设置
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysPlant\Start
至 4
并重新启动,然后它开始工作。
关于visual-studio - 无法启动 Visual Studio Profiler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4524903/