Attach to a running process

To attach to an already running process, you'll need to create a "profile" launch configuration as follows:
  1. If the Run menu doesn't include a Profile entry, add it like this:
    1. Select Customize Perspective ... from the Window menu.
    2. Select the Command Groups Availability tab.
    3. In the list of checkboxes, ensure that the Profile checkbox is enabled.
    4. Click OK.
  2. Choose Run > Profile Configurations... .
  3. The process you want to attach has to be running on the target with Memory Analysis enabled, see Launch your program with Memory Analysis.
  4. Set up the launch configuration as in View Memory Analysis data.
  5. Make sure that Memory Analysis log file (MALLOC_FILE) value, which you used when running process on the target is the same in Advanced Settings section of launch configuration.

After launching, a dialog appears with a list of all the running processes on the target. Choose the process you want to attach to; the Session view then lists the new session.

To analyze shared objects, you should add a path to your host shared libraries into the Shared Libraries tab, of the Tools tab.

In the Session View, you can expand your session, expand your process, and then select a shared object to view its memory events and traces in a new tab in the editor.