Visual Studio 2022 CPU 使用率在准备数据步骤时冻结

发布于 2025-01-15 16:26:02 字数 724 浏览 2 评论 0原文

我正在尝试使用 Visual Studio 2022 查看 CPU 使用情况,之前我已经在 Visual Studio 2017 中完成了此操作,没有任何问题,但在 2022 年到目前为止,它始终卡在准备数据步骤中。当我遇到断点时,我得到这个视图

准备数据。

我尝试简化我的程序,以确保我的代码中没有任何奇怪的东西导致问题,但我得到的同一个窗口只是无限地旋转当我试图描述这个时 我在 .net 6.0 控制台应用程序

var counter = 0;
for(var i = 0; i < 999; i++)
{
    counter += i;
}
Console.WriteLine(counter);

和面向 4.7.2 的 wpf 应用程序中遇到了问题,

这是我的 Visual Studio 信息

微软 Visual Studio 专业版 2022 版本17.0.5 VisualStudio.17.Release/17.0.5+32112.339 微软.NET框架 版本4.8.04084

安装版本:专业版

I am trying to look at CPU usage with Visual Studio 2022, and I have done this before in Visual Studio 2017 without any issue, but in 2022 so far it has always gotten stuck at the preparing data step. When I hit a break point I get this view

Preparing data.

I've tried simplifying my program to make sure there isn't something weird in my code causing problems, but I get that same window just infinitely spinning in circles when I tried to profile this code

var counter = 0;
for(var i = 0; i < 999; i++)
{
    counter += i;
}
Console.WriteLine(counter);

I've had issues with this in a .net 6.0 console app, and a wpf app targeting 4.7.2

This is my Visual Studio info

Microsoft Visual Studio Professional 2022
Version 17.0.5
VisualStudio.17.Release/17.0.5+32112.339
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Professional

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

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

发布评论

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

评论(1

飘逸的'云 2025-01-22 16:26:02

这可能是 17.0.5 中被破坏的东西,通常会有一个黄色标志通知是否有可用更新,但是当我手动检查更新时,我发现我可以更新到 17.1.1

更新到 17.1.1 后 CPU使用功能正在按预期工作。

This is potentially something that was broken in 17.0.5, usually there is a yellow flag notifying if an update is available, but when I manually checked for an update I found I could update to 17.1.1

After updating to 17.1.1 the CPU usage feature is working as expected.

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