I have a Page with 5 usercontrols.
This page takes long time to load.
I am loading this page in Iframe(jQuery Colorbox Plugin).
how can I measure loading time for each usercontrol ?
And checking which usercontrol or action causes this problem for me.
I have a Page with 5 usercontrols. This page takes long time to load.
Share
Use the VS2010 built in profiler. It will show you the code paths that have the highest cost.
Details:
Click Analyze->Launch Performance Wizard… on the VS2010 main menu. (I have VS Ultimate, I am not sure if this is available in all versions.
Select Instrumentation. Click Next. (experiment with all the options! :D)
Choose the project you want to analyze. Click Next.
Select Enable Tier Interaction Profiling if needed. Click Next, then click Finish.
VS will now launch IE and run your app. Perform the actions in your application that you want to inspect. Close IE.
The profiling report will be shown that will give the details of the profiling session. Pay particular attention to the “Hot Path”.
Have fun debugging!