- VSPerfClrEnv /sampleon
- "C:\Program Files\Internet Explorer\iexplore.exe" http:\\youhostname\pathtosilverlightapplication
- VSPerfCmd /start:sample /output:ProfileTraceFileName /attach
. You can Identify Process ID using Task Manager.
- Run you scenarios.
- VSPerfcmd /detach
- VSPerfCmd /shutdown
- VSPerfClrEnv /off
You can open your ProfileTraceFileName file in VS 2010 and see you code execution paths. But before you open you need to provide paths to MS Symbol Server and also path to your profiling application's pdb files to load symbols of your application. You can do this using VS 2010's menu "Debug->Settings", In settings option window, select symbols under Debug category. Ensure Microsoft Symbol server is selected, and also add path to your pdb files. After doing this, if you open Trace file you can see your code execution paths.