[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4


pprof Command

Purpose

Reports CPU usage of all kernel threads over a period of time.

Syntax

pprof { time | -I pprof.flow | -i tracefile | -d } [ -T bytes] [ -v ] [ -s ] [ -n ] [ -f ] [ -p ] [ -w ]

Description

The pprof command reports on all kernel threads running within an interval using the trace utility. The raw process information is saved to pprof.flow, and five reports are generated. The pprof command can also take previously generated Pprof.flow to regenerate reports. If no flags are specified, all reports are generated.

Types of Reports

pprof.cpu Lists all kernel level threads sorted by actual cpu time. Contains: Process Name, Process ID, Parent Process ID, Process State at Beginning and End, Thread ID, Parent Thread ID, Actual CPU Time, Start Time, Stop Time, Stop - Start
pprof.start Lists all kernel threads sorted by start time. Contains: Process Name, Process ID, Parent Process ID, Process State Beginning and End, Thread ID, Parent Thread ID, Actual CPU Time, Start Time, Stop Time, Stop - Start
pprof.namecpu Lists information about each type of kernel thread (all executable with the same name). Contains: Process Name, Number of Threads, CPU Time, % of Total CPU Time
pprof.famind Lists all processes grouped by families (processes with a common ancestor). Child process names are indented with respect to the parent. Contains: Start Time, Stop Time, Actual CPU Time, Process ID, Parent Process ID, Thread ID, Parent Thread ID, Process State at Beginning and End, Level, Process Name.
pprof.famcpu Lists the information for all families (processes with a common ancestor). The Process Name and Process ID for the family is not necessarily the ancestor. Contains: Start Time, Process Name, Process ID, Number of Threads, Total CPU Time.

Flags


-d Waits for the user to execute trcon and trcstop from the command line.
-f Specifies to only generate the pprof.famcpu and pprof.famind reports.
-I pprof.flow Indicates to generate reports from a previously generated pprof.flow. Specifies to only generate the pprof.namecpu report.
-i tracefile Indicates to generate reports from a tracefile. The trace must contain the following hooks: 135,106,10C,134,139,465,467,00A
-n Specifies to only generate the pprof.namecpu report.
-p Specifies to only generate the pprof.cpu report.
-s Specifies to only generate the pprof.start report.
-T Sets the trace kernel buffer size in bytes. The default is 32000.
-v Sets verbose mode (print extra details).
-w Specifies to only generate pprof.flow.
time Specifies the number of seconds to trace the system.

Note: Review the /usr/lpp/perfagent/README.perfagent.tools file for the latest on changes to the performance analysis tools.

Related Information

The trace command, trcrpt command, filemon command.

The trcon subroutine, trcstop subroutine.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]