oh takes two arguments: a process ID and a mode. The process ID is the ID of the process that you want to record activity about. The mode is any one of the following:
To use oh, start up the program that you want to analyze, obtain its process id, then execute:
oh pid start
oh starts recording information about object allocation and deallocation. After oh has started recording, you can enter the address of an object like this:
oh pid address
and oh displays the stacks, from oldest to newest, involving that object.
To stop recording with oh, enter:
oh pid stop
You might find it useful to set the NSZombieEnabled environment variable to YES before starting up your program. This environment variable ensures that memory does not get reused, thus ensuring that any address you give to oh will be unique.
You can run oh in conjunction with gdb so that you can use gdb to easily obtain the address of an object. It's also useful to run oh in conjunction with leaks to help find a cause of a memory leak.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97