To attach to an already running process, you'll need to create a "profile" launch configuration as follows:
-
If the Run menu doesn't include a Profile entry, add it like this:
-
Select Customize Perspective ... from the Window menu.
-
Select the Command Groups Availability tab.
-
In the list of checkboxes, ensure that the Profile checkbox is enabled.
-
Click OK.
-
Choose .
-
The process you want to attach has to be running on the target with Memory Analysis enabled, see Launching your program with Memory Analysis.
-
Set up the launch configuration as in Viewing Memory Analysis data.
-
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.