procsystime(1m) USER COMMANDS procsystime(1m)

procsystime - analyse system call times. Uses DTrace.

procsystime [-acehoT] [ -p PID | -n name | command ]

procsystime prints details on system call times for processes, both the elapsed times and on-cpu times can be printed.

The elapsed times are interesting, to help identify syscalls that take some time to complete (during which the process may have slept). CPU time helps us identify syscalls that are consuming CPU cycles to run.

Since this uses DTrace, only users with root privileges can run this command.

print all data
print syscall counts
print elapsed times, ns
print CPU times, ns
print totals
examine this PID
examine processes which have this name

# procsystime -p 1871
# procsystime -n tar
# procsystime -on tar
# procsystime -cn tar
# procsystime -eon tar
# procsystime -aTn bash
# procsystime df -h

System call name
Total time, nanoseconds
Number of occurrences

See the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with verbose descriptions explaining the output.

procsystime will sample until Ctrl-C is hit.

Brendan Gregg [Sydney, Australia]

dtruss(1M), dtrace(1M), truss(1)

September 22, 2005 version 1.00