rusage — Print Resource Usage for a Command

Synopsis

/usr/ucb/rusage command
					

Description

The rusage command is similar to time(1). It runs the given command , which you must specify; that is, command is not optional as it is in the C shell timing facility. When the command is complete, rusage displays the real (wall clock), the system CPU, and the user CPU times that elapsed during execution of the command, plus other fields in the rusage structure, all on one long line. Times are reported in seconds and hundredths of a second.

Examples

The following example shows the format of rusage output.

castle% rusage wc /kookaburra-1 9 47 264 kookaburra-1 0.07 real 0.02 user 0.03 sys 0 pf 0 pr 0 sw 0 rb 0 wb 0 vcx 0 icx 0 mx 0 ix 0 id 0 is castle% ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.