When MemoryScape attaches to a process that is already running, the agent must already be associated with it. You can do this in two ways:
The variables that you must use on each platform are shown in the following table. The placeholder <hia_dir> represents the directory in which the agent is found. See the note at the end of the previous section for a tip on how to determine this location.
Snow Leopard and later DYLD_INSERT_LIBRARIES=<hia_dir>/libtvheap.dylib If you are already using MALLOCTYPE for another purpose, reassign its value to the variable TVHEAP_MALLOCTYPE and assign MALLOCTYPE as above; when the agent starts it will correctly pass on the options. LD_PRELOAD=<hia_dir>/libtvheap.soLD_PRELOAD=<hia_dir>/libtvheap_64.so LD_PRELOAD=<hia_dir>/libtvheap.soLD_PRELOAD_32=<hia_dir>/libtvheap.soLD_PRELOAD=<hia_dir>/libtvheap_64.soLD_PRELOAD_64=<hia_dir>/libtvheap.soIf the agent is the only library you are preloading, use the generic variable. Otherwise use whichever variable was used for the other preloaded libraries.
Rogue Wave Software, Inc. |
Voice: (303) 473-9118 |
rwonlinedocs@roguewave.com |