dotTrace
 
Get dotTrace

Control Profiling Session with API

Last modified: 26 May 2024

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: