6 .Nd gather system-wide time during program execution
11 .Op Fl t Ar sleep_time
12 .Ar utility Op Ar argument ...
16 .Op Fl t Ar sleep_time
25 .Op Fl t Ar sleep_time
31 in that it allows you to execute a utility program. However after execution
32 completes, it reports the system-wide time that was spent
33 during that time period, instead of just the portion directly caused
34 by the utility. This can be used to gather information about CPU
35 utilization by kernel threads (AIO, networking) and interrupt routines
36 on behalf of a program, but not directly attributed to it.
40 program can also be used to snapshot counters with
42 and then later used with
44 to calculate time spent during a time interval that doesn't correlate
45 to a specific command execution. For example:
47 .Bd -ragged -offset indent
52 $ systime -u $systime_user -s $systime_sys -i $systime_idle
54 18.79 real 2.03 user 1.04 sys
59 program can also be used to print the usage of a process with
61 , also printing the system wide usage
64 can be used to print time spent as a percentage of overall CPU capacity
65 of the system (capped at 100%)
68 can be used to print the usage iteratively with
70 seconds sleep between iterations
73 can be used to specify sleep_time between iterations, defaults to 1 second if not specified.