Manual offline processing with the tprof command
You can perform offline processing of trace files with the tprof command, but you must specify filenames with a rootstring name.
Also, there are certain suffixes required for the input files that the tprof command uses. For example, the trace binary file must end in .trc. Also, you need to collect the gensyms command output and put it in a file called the rootstring.syms file.
To insure the trace file contains sufficient information to be post-processed by tprof, the trace command line must include the -M and -j tprof flags.
If you name the rootstring file trace1,
to collect a trace, you can use the trace command using all
of the hooks or at least the following hooks:
# trace -af -M -T 1000000 -L 10000000 -o trace1.trc -j tprof
# workload
# trcoff
# gensyms > trace1.syms
# trcstop
# trcrpt -r trace1 -k -u -s -z
The example
above creates a trace1.prof file, which gives you a CPU profile
of the system while the trace command was running.