Visual Studio 2022 CPU 使用率在准备数据步骤时冻结
我正在尝试使用 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
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.04084Installed Version: Professional
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是 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.