To generate a heap profile from your program:
- Compile the program for profiling.
- Run it with one of the heap profiling options (eg.
-h
for a basic producer profile). This generates the fileprog.hp
. - Run
hp2ps
to produce a Postscript file,prog.ps
.