如何使用Visual Studio 2017 Performance Profiler调试UI线程

时间:2019-04-09 22:11:35

标签: .net wpf visual-studio performance ui-thread

我正在WPF和.Net Framework中开发桌面应用程序。我正在经历几秒钟的明显的UI冻结。

我运行了Visual Studio的Performance Profiler,我发现在某些时间范围内FPS降为零:

enter image description here

通过看到那些绿色的条,我认为我将能够找出是谁在阻止UI线程,但是时间轴上有一个空白:

enter image description here

您有什么建议可以帮助我找出是谁造成了这些障碍? 这也是我第一次使用该工具,因此我可能会在设置中丢失某些内容。

谢谢。

0 个答案:

没有答案