1 .TH cputimes 1m "$Date:: 2007-08-05 #$" "USER COMMANDS"
3 cputimes \- print time by Kernel/Idle/Process. Uses DTrace.
6 [\-ahTV] [\-t top] [interval [count]]
8 cputimes prints the CPU time consumed by the Kernel, Idle threads and
11 This program accurately measures time consumed by the kernel, but in
12 doing so creates extra kernel load of it's own. This extra kernel
13 activity can be measured by running one cputimes and then another, and
14 comparing the difference in kernel consumed time. This method can be
15 used to estimate the load caused by other DTrace scripts.
17 Since this uses DTrace, only the root user or users with the
18 dtrace_kernel privilege can run this command.
22 stable - needs the sysinfo and sched providers.
32 don't print timestamps
35 print top num lines only
38 Default, print Kernel/Idle/Process time, 1 x 1 second sample,
49 Print all processes every 10 seconds,
55 Print top 8 lines every 5 seconds,
63 Either KERNEL, IDLE, PROCESS or process name.
66 Idle time - CPU running idle thread
69 Kernel time - Kernel servicing interrupts, ...
72 Process time - PIDs running on the system
75 Sum of the CPU time, ns (nanoseconds)
77 See the DTraceToolkit for further documentation under the
78 Docs directory. The DTraceToolkit docs may include full worked
79 examples with verbose descriptions explaining the output.
81 cputimes will run once, unless a count is specified.
86 dtrace(1M), vmstat(1M)