DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Managing system performance

Collecting profiling data (prfdc, prfsnap)

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.
Next topic: Formatting the collected data (prfpr)
Previous topic: Enabling and disabling the sampling mechanism (prfstat)

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004