DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Analyzing run-time behavior

Using fprof

fprof is a flow and time profiler. It reports when each function was called and when the function exited. This information can be displayed to the programmer or fed back directly to the compilation system.

fprof is available for profiling UDK mode programs only, and cannot be used to profile programs compiled in OSR mode.

The programmer can read statistical information about how much time was spent in (and the number of calls to) each function during the profiled execution of the program. This statistical information also includes caller/callee data. The programmer can also query the profiler to see the actual flow of control through the profiled execution.

The compilation system can use flow profiles to perform Locality of Reference Tuning. Locality of Reference Tuning is a process by which code is relocated within an object such that code that belongs together is located together. This makes programs run faster because it reduces paging and increases the number of cache hits.


Next topic: Compiling the program
Previous topic: Profiling archive or shared object library code with prof

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005