无法启动 Visual Studio Profiler

发布于 2024-10-09 05:11:35 字数 511 浏览 0 评论 0原文

我有 VS 2010 Ultimate。我创建了空的 win32 控制台解决方案,并将其 cpp 文件替换为 http://pastebin.com/EQJKJK6T 我尝试执行 CPU 采样分析。但由于某种原因,我收到以下消息

MessageBox:

无法启动“exe 文件的路径”。先前尝试分析 应用程序未成功完成。请重新启动应用程序。

输出窗口:

分析已开始。
警告 VSP2355:某些 Windows 计数器将不会被收集。如果没有这些数据,某些性能规则可能不会触发。
分析进程 ID 4368(测试)。
进程 ID 4368 已退出。
数据写入 e:\projects\test\test101224.vsp。
分析完成。
PRF0025:未收集数据。 
分析完成。

I have VS 2010 Ultimate. I have created empty win32 console solution and replaced it's cpp file with http://pastebin.com/EQJKJK6T I tried to perform CPU Sampling profiling. But for some reason I get the following messages

MessageBox:

Could not launch 'path to exe file'. Previous attempt to profile the
application finished unsuccessfully. Please restart the application.

Output window:

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情徒 2024-10-16 05:11:35

我遇到了这个问题,但奇怪的是它只影响一个 Visual Studio 解决方案。将探查器与另一个 Visual Studio 解决方案一起使用效果很好。

我尝试过:

但都不起作用。

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

I had this issue, yet bizarrely it only affected one Visual Studio solution. Using the profiler with another Visual Studio solution worked fine.

I tried:

but neither worked.

In the end I amended the registry, setting HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysPlant\Start to 4 and rebooted, it then started working.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文