Mac Developer Library Developer
Search

 

This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



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 directory. The DTraceToolkit docs  may
       include full worked examples with verbose 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)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Feedback