|
|
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(1), fur(1), lrt_scan(1), prof(1) and lprof(1).