This manual page is for Mac OS X version 10.6.3

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.

  • For more information about the manual page format, see the manual page for manpages(5).

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

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



dappprof(1m)                                    USER COMMANDS                                   dappprof(1m)



NAME
       dappprof - profile user and lib function usage. Uses DTrace.

SYNOPSIS
       dappprof [-acehoTU] [-u lib] { -p PID | command }

DESCRIPTION
       dappprof  prints details on user and library call times for processes as a summary style aggragation.
       By default the user fuctions are traced, options can be used to trace library  activity.  Output  can
       include function counts, elapsed times and on cpu times.

       The elapsed times are interesting, to help identify functions 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 function counts

       -e     print elapsed times, ns

       -o     print CPU times, ns

       -T     print totals

       -p PID examine this PID

       -u lib trace this library instead

       -U     trace all library and user functions


EXAMPLES
       run and examine the "df -h" command,
              # dappprof df -h


       print elapsed times, on-cpu times and counts for "df -h",
              # dappprof -ceo df -h

       print elapsed times for PID 1871,
              # dappprof -p 1871


       print all data for PID 1871,
              # dappprof -ap 1871


FIELDS
       CALL   Function call name

       ELAPSED
              Total elapsed time, nanoseconds

       CPU    Total on-cpu 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
       dappprof will sample until Ctrl-C is hit.

AUTHOR
       Brendan Gregg [Sydney, Australia]

SEE ALSO
       dapptrace(1M), dtrace(1M), apptrace(1)




version 1.10                                    May 14, 2005                                    dappprof(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.

Did this document help you? Yes It's good, but... Not helpful...