1 .TH dappprof 1m "$Date:: 2007-08-05 #$" "USER COMMANDS"
3 dappprof \- profile user and lib function usage. Uses DTrace.
6 [\-acehoTU] [\-u lib] { \-p PID | command }
8 dappprof prints details on user and library call times for processes
9 as a summary style aggragation. By default the user fuctions are
10 traced, options can be used to trace library activity. Output can
11 include function counts, elapsed times and on cpu times.
13 The elapsed times are interesting, to help identify functions
14 that take some time to complete (during which the process may
15 have slept). CPU time helps us identify syscalls that
16 are consuming CPU cycles to run.
18 Since this uses DTrace, only the root user or users with the
19 dtrace_kernel privilege can run this command.
23 stable - needs the pid provider.
33 print elapsed times, ns
45 trace this library instead
48 trace all library and user functions
52 run and examine the "df \-h" command,
58 print elapsed times, on-cpu times and counts for "df \-h",
63 print elapsed times for PID 1871,
69 print all data for PID 1871,
80 Total elapsed time, nanoseconds
83 Total on-cpu time, nanoseconds
88 See the DTraceToolkit for further documentation under the
89 Docs directory. The DTraceToolkit docs may include full worked
90 examples with verbose descriptions explaining the output.
92 dappprof will sample until Ctrl\-C is hit.
97 dapptrace(1M), dtrace(1M), apptrace(1)