In Visual Studio 2010, you can use standard memory profiling tools (GC and lifetime), but only the Ultimate and Premium versions. Support is for command line profiling only, so the basic principles are:
- Open a Visual Studio Command Prompt
- VSPerfClrEnv / globalsamplegclife
- VSPerfCmd -start: sample -output: somefile.vsp
- VSPerfCmd -launch: "c: \ Program Files (x86) \ Internet Explorer \ iexplore.exe" -args: ""
- VSPerfCmd -globalon
- VSPerfCmd -shutdown
- VSPerfClrEnv / off
VSP .
: http://www.nachmore.com/2010/profiling-silverlight-4-with-visual-studio-2010/