procsystime man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

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

NAME
       procsystime - analyse system call times. Uses DTrace.

SYNOPSIS
       procsystime [-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 users with root privileges	can  run  this
       command.

OPTIONS
       -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

EXAMPLES
       Print elapsed times for PID 1871,
	      # procsystime -p 1871

       Print elapsed times for processes called "tar",
	      # procsystime -n tar

       Print CPU times for "tar" processes,
	      # procsystime -on tar

       Print syscall counts for "tar" processes,
	      # procsystime -cn tar

       Print elapsed and CPU times for "tar" processes,
	      # procsystime -eon tar

       print all details for "bash" processes,
	      # procsystime -aTn bash

       run and print details for "df -h",
	      # procsystime df -h

FIELDS
       SYSCALL
	      System call name

       TIME (ns)
	      Total time, nanoseconds

       COUNT  Number of occurrences

DOCUMENTATION
       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.

EXIT
       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)
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net