dotMemory 2018.2 Help

Profile Running Process

To profile an already running process

  1. Run dotMemory as a standalone application. The dotMemory window will open.
  2. In the left panel, select Attach.
  3. In the middle panel, select the .NET process you are going to profile. Only processes running on .NET Framework 4.0 or higher are displayed and available to attach.
  4. Optionally, if you are going to control profiling session (take snapshots, end session, and so on) using the API (rather than the Controller window), select Control profiling via API in the right panel. For more details on how to control profiling using the API, refer to the Controlling Profiling Session Through API chapter.
  5. Click Run.
  6. Take snapshots. For more details on how to control profiling session, refer to Controlling Profiling Session (if you control the session manually) or to Controlling Profiling Session Through API (if you control profiling using the API).
  7. 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 executed by your code.
  8. Analyze the collected snapshots.
Last modified: 4 September 2018