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