visual-studio - Visual Studio CPU Profiler/无数据

标签 visual-studio

今天,我在 Visual Studio 中的 CPU 使用性能分析器停止工作。我启动它,它似乎正在工作,您可以看到 CPU 的图形上下波动,但是当它完成时,我没有收到带有消息的数据:
“当前过滤器集中没有数据。”
我已经尝试了所有类别和过滤器的组合,但都没有成功。我重新启动了 Visual Studio,重新启动了工作站,我尝试了一个新的 hello world 项目。其他性能工具似乎有效(例如 .NET 对象分配跟踪工具有效)。为了(尝试)排除它是我项目中的特定内容,我能够在第二台工作站上针对同一组代码成功运行它。在禁用我添加的所有内容(如 ReSharper)后,我还运行了不带扩展名的 VS 并在常规模式下运行。
编辑:另外,我刚刚在 Windows 事件查看器中找到了这个。

System.Runtime.InteropServices.COMException: The method or operation is not implemented., System.Object get_Value()
   at EnvDTE.Property.get_Value()
   at Microsoft.VisualStudio.PerformanceTools.ProjectTarget.LoadBinaryProject(IVsHierarchy hier)
   at Microsoft.VisualStudio.PerformanceTools.ProjectTarget.LoadProjInfo()
这也刚刚在“Windows 错误报告”下的事件查看器中弹出,引用了 Watson VSTelem.Out 错误:
Fault bucket 125730739576, type 5
Event Name: PerfWatsonVS12Data
Response: Not available
另一个奇怪的是,我只运行了大约 20 秒的配置文件 session ,但是当它完成时,VS 说“诊断 session :127:47 分钟”,如果它从未停止过,这将是我今天早上第一次尝试的时间。我从安装程序中修复了 Visual Studio,并且配置文件在 1 个 session 之后工作,然后第二个 session 再次恢复到上述行为。
我目前正在使用:
  • Visual Studio 16.8.5 16.9.1 16.9.2 16.9.3 16.9.4
  • .NET 核心 SDK:5.0.201
  • Windows 10 版本 2004 内部版本 19041.867

  • 关于修复的任何想法?
    enter image description here
    编辑:根据以下链接,它可能与 Windows 更新和我的 NVidia 驱动程序中的错误有关:
  • https://developercommunity.visualstudio.com/t/no-data-in-cpu-usage-tool-windows-update-related/1384519
  • 最佳答案

    一旦找到解决方案或变通方法,Microsoft 就确认了该问题 - 报告它。关注论坛 https://developercommunity.visualstudio.com/t/profiling-cpu-still-states-no-user-code-was-runnin/607535?from=email&viewtype=all#T-ND1373491

    关于visual-studio - Visual Studio CPU Profiler/无数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66574857/

    相关文章:

    visual-studio - 为 TypeScript 编译器提供了一个空的配置字符串

    c - Turbo C 编译器和 Visual Studio 2012 中同一 C 程序的不同输出

    c++ - "Error: type name is not allowed"消息在编辑器中但在编译期间没有

    c - 如何从VC8中的2个静态库中获取所有符号冲突

    C# 在工具箱中包含派生控件

    c# - Visual Studio 无法写入输出文件 '...\obj\Debug\Foo.Bar.dll"

    visual-studio - "No such interface supported"使用 Visual Studio 2015 诊断工具

    c# - 如何使用 C# 获取 AppV 虚拟进程列表

    c++ - 我可以在运行时初始化 static float 变量吗?

    c# - 无法以代码优先方式创建数据库 Entity Framework