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.
精彩评论