How to: Choose Collection Methods
Performance tools support two methods of profiling code: sampling and instrumentation. You can use the performance session property to specify the most appropriate collection method for your application. If you are using command-line tools, seesection of the documentation for more information.
To choose a collection method
In Performance Explorer, select the performance session.
A performance session file name has a .psess extension.
Right-click the performance session, and then click Properties.
In the Property Pages, click the General properties.
Click Sampling or Instrumentation.
For more information, seeand .