Using env to Insert the HIA
puts $TV::hia_local_dirWhen TotalView attaches to a process that is already running, the HIA must already be associated with it. You can do this in two ways:
Manually link the HIA as described in previous sections.
Start the program using env (see man env on your system). This pushes the HIA into your program.
Table 27 lists he variables required by each platform. The placeholder <hia_dir> represents the directory in which the HIA is found.
|
Platform |
Variable |
|
Apple Mac OS X |
DYLD_INSERT_LIBRARIES=<hia_dir>/libtvheap.dylib |
|
IBM AIX |
MALLOCTYPE=user:tvheap_mr.a |
|
Linux |
|
|
32-bit |
LD_PRELOAD=<hia_dir>/libtvheap.so |
|
64-bit |
LD_PRELOAD=<hia_dir>/libtvheap_64.so |