是否可以跟踪在 Visual Studio 中调试 Silverlight 应用程序时触发的所有事件?

发布于 2024-09-17 00:40:26 字数 102 浏览 3 评论 0原文

我正在调试一个 Silverlight 应用程序,该应用程序消耗 100% CPU 使用率,因为某些事件被重复触发。首先,Intellitrace 可以在 Silverlight 上运行吗?

I'm debugging a Silverlight application that is consuming 100% CPU usage because some event is being fired repeatedly. First of all, does Intellitrace works on Silverlight?

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

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

发布评论

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

评论(2

孤芳又自赏 2024-09-24 00:40:26

您可以查看Silverlight Spy。我使用了旧的免费测试版,它做到了(如果我没记错的话)。这对于 UI 调整也有很大帮助。

You might have a look at Silverlight Spy. I used the old free beta version and it did that (if I remember well). It's a great help for UI tuning as well.

小姐丶请自重 2024-09-24 00:40:26

Intellitrace 不适用于 Silverlight。如果这确实是一个被一遍又一遍调用的事件,那么当您进入调试器时,您应该能够在调用堆栈中看到它。

如果不是,那么很可能是代码的非托管部分中的某些内容。您可能需要打开重绘区域,这可以帮助确定是否element 会导致过度重绘,从而快速消耗 CPU。

Intellitrace does not work in Silverlight. If it is truly an event being called over and over you should be able to see it in the call stack if you break into the debugger.

If not, then it's most likely something in the unmanaged portion of the code. You may want to turn on redraw regions which can help identify if an element is causing excessive redrawing which can quickly eat the CPU.

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