August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/ccs/bin/prof [-ChsVz][-a | c | n | t][-o | x][-g | l] [-m mdata][prog]
The prof command interprets a profile file produced by the monitor function. The symbol table in the object file prog (a.out by default) is read and correlated with a profile file (mon.out by default). For each external text symbol, the percentage of time spent executing between the address of that symbol and the address of the next is printed, together with the number of times that function was called and the average number of milliseconds per call.
The times reported in successive identical runs can vary because of varying cache-hit ratios that result from sharing the cache with other processes. Even if a ...
Read now
Unlock full access