Manual Pages for UNIX Darwin command on man procsystime
MyWebUniversity

Manual Pages for UNIX Darwin command on man procsystime

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

NAME

procsystime - analyse system call times. Uses DTrace.

SYNOPSIS

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

DESCRIPTION

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 the root user or users with the dtracekernel privilege can run this command. OOPPTTIIOONNSS

-a print all data

-c print syscall counts

-e print elapsed times, ns

-o print CPU times, ns

-T print totals

-p PID examine this PID

-n name

examine processes which have this name EEXXAAMMPPLLEESS Print elapsed times for PID 1871,

# pprrooccssyyssttiimmee -p 1871

Print elapsed times for processes called "tar",

# pprrooccssyyssttiimmee -n tar

Print CPU times for "tar" processes,

# pprrooccssyyssttiimmee -on tar

Print syscall counts for "tar" processes,

# pprrooccssyyssttiimmee -cn tar

Print elapsed and CPU times for "tar" processes,

# pprrooccssyyssttiimmee -eon tar

print all details for "bash" processes,

# pprrooccssyyssttiimmee -aTn bash

run and print details for "df -h",

# pprrooccssyyssttiimmee df -h

FFIIEELLDDSS SYSCALL System call name TIME (ns) Total time, nanoseconds COUNT Number of occurrences DDOOCCUUMMEENNTTAATTIIOONN

See the DTraceToolkit for further documentation under the Docs direc-

tory. The DTraceToolkit docs may include full worked examples with ver-

bose descriptions explaining the output. EEXXIITT

procsystime will sample until Ctrl-C is hit.

AUTHOR Brendan Gregg [Sydney, Australia]

SEE ALSO

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

version 1.00 Sep 22, 2005 procsystime(1m)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™