Preparing your program for profiling
To use either of the profilers that are supplied with
the C compilation system, you must do two things:
At the end of execution, data about your program's
run-time behavior is written to a file in your current directory:
Compile and link your program with a profiling option:
for prof: cc -qp test.c
for lprof: cc -ql test.c
Run the profiled program:
for prof: mon.out
for lprof: prog.cnt
where prog is the name of the profiled program.
The data files are inputs to the profilers.
``Interpreting profiling output''
``C programmer's productivity tools''
for further information.
Optimizing your program
Preparing your program for debugging
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003