How to: Attach and Detach Profiler to Running Processes

Performance Tools allow you to attach to or detach from a running process that is being sampled. You can use this method when you want to avoid gathering data about application load time, or to monitor the performance of a process after it reaches a specific state.

Important

The following steps apply to attaching/detaching processes from within the IDE. For information about how to use command line tools, see Command-line Tools. For information about how to profile services, see How to: Profile Services.

To attach to a running process

  1. In Performance Explorer, right-click the performance session, and then click Attach/Detach.

    The Attach Profiler to Process dialog box appears.

  2. Click the image name you want to attach.

  3. Click Attach.

To detach from a running process

  1. In Performance Explorer, right-click the performance session, and then click Attach/Detach.

    The Attach Profiler to Process dialog box appears.

  2. Click the image name from which you want to detach.

  3. Click Detach.

See Also

Concepts

Guidelines for Using Performance Tools
Performance Session Overview