|
|
The prfdc command performs the data collection function of the profiler by copying the current value of all the text address counters to a file where the data can be analyzed. The prfdc command has the following format:
/usr/sbin/prfdc file [period [off_hour [system_namelist]]]where system_namelist is a file of module names. The default system namelist for non-loadable modules is /stand/unix and the files in /etc/conf/mod.d are the system namelists for loadable modules. This command stores the contents of the counters in a file every period minutes and turns off at off_hour. Valid values for off_hour are 0 through 24. Note that if you use an off_hour of 24, profiling never stops.
For example, the following command line copies the current value of all the text address counters into a file called temp every five minutes and turns off at 4:00 P.M.:
/usr/sbin/prfdc temp 5 16
The prfsnap command also performs data collection, but takes a snapshot of the system at the time it is called. The format of this command is as follows:
/usr/sbin/prfsnap [file] [system_namelist]where the command appends the counter values to file. Both commands initialize profiling if it has not already been initialized by either prfld or prfstat.