Optionally, if your application creates a number of processes and you want to profile a specific one,
turn on Advanced and Profile child processes. Add a process
filter as described in the Standalone Applications section.

In Profiler Options, specify profiling type. Typically, you should choose
between Sampling (evaluate performance and determine slowest methods in your app) and
Timeline (determine slowest methods and how method calls are distributed in time).
For more details on
profiler options, refer to the Profiler Options section.

Optionally, if you are going to control profiling session (take snapshots, end session, and so on) using
the API (rather than the Controller window), turn on Advanced
and Use profiler API. For more details on how to control profiling using the API,
refer to the Controlling Profiling Session Through API chapter.

After you collect the data, either close the profiled application or detach the profiler
using the Detach button of the Controller window.
If you use the API to control profiling, detaching must be provided by your code.