To use the API for profiling your applications
- Reference the JetBrains.Profiler.Core.Api.dll assembly (located in the dotTrace Performance installation directory) from your project.
- Insert calls to methods of JetBrains.Profiler.Core.Api.PerformanceProfiler class into your code as required by your use case.
Start profiling the application from within dotTrace,
and select the
Use profiler APIcheck box in the Profiler Configurationdialog box.