开发者

Is it possible to trace all the events fired when debugging a Silverlight application in Visual Studio?

开发者 https://www.devze.com 2023-01-14 03:56 出处:网络
I\'m开发者_StackOverflow社区 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?You

I'm开发者_StackOverflow社区 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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消