dotTrace
 
2021.3
Get dotTrace
You are viewing the documentation for an earlier version of dotTrace.

Control Profiling Session with API

Last modified: 10 November 2021

The profiling API provides a number of classes which allow you to control the profiling process. For example, right from the code of your application, you can:

  • start collecting profiling data: MeasureProfiler.StartCollectingData(),

  • stop collecting the data: MeasureProfiler.StopCollectingData(),

  • save the data to the disk: MeasureProfiler.SaveData(),

  • and more.

For the detailed information about the API classes, refer to API Reference.

There are two main scenarios that require using the profiling API: