views:

32

answers:

2

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?

A: 

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.

Josh Einstein
+2  A: 

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.

R4cOON
+1 Yeah, Silverlight spy is a great tool. I'm using 3.0.0.11 it also supports the event viewer.
Avatar