Use Performance Tool integrated with visual studio
To create a performance session for an open project
-
On the Tools menu, point to Performance Tools, and then click Performance Wizard.
-
From the Which of the following available targets would you like to profile? drop-down list, select the name of the application you want to profile, and then click Next.
-
Choose Sampling or Instrumentation to specify a profiling method, and then click Next.
For more information about sampling and instrumentation, see Guidelines for Using Performance Tools.
-
Click Finish.
To create a performance session without opening a project
-
Start Visual Studio.
-
On the Tools menu, point to Performance Tools, and then click Performance Wizard.
-
From the Available targets drop-down list, select appropriate target (EXE, DLL, ASP.NET), and then click Next.
-
Specify the full path of the target and options, or the local URL that will run the application, and then click Next.
-
Choose Sampling or Instrumentation to specify a profiling method, and then click Next.
-
Click Finish.