|
|
To use these profilers, you must follow a three-step procedure:
Compile the program normally, then use fur to insert the profiling
code (for fprof, prof or block profiling):
for prof: -P prof.o -p all
for fprof: -p all -e all
for block profiling: -b all
Then, for prof and fprof link with -qp and -qf respectively. For block profiling, link normally.
For fprof-type logs, there are two different tools used to analyze
the data: fprof and lrt_scan.
The former is used
for performance analysis (and statistics), while the
latter is used for tuning
locality of reference.
For block profiling, just run fur on the output files.
For further details of profiler usage, see fprof(CP), fur(CP), lrt_scan(CP), prof(CP) and lprof(CP).