Manual Pages for UNIX Darwin command on man dappprof
MyWebUniversity

Manual Pages for UNIX Darwin command on man dappprof

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

NAME

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

SYNOPSIS

ddaapppppprrooff [-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 func-

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

-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

EEXXAAMMPPLLEESS

run and examine the "df -h" command,

# ddaapppppprrooff df -h

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

# ddaapppppprrooff -ceo df -h

print elapsed times for PID 1871,

# ddaapppppprrooff -p 1871

print all data for PID 1871,

# ddaapppppprrooff -ap 1871

FFIIEELLDDSS CALL Function call name ELAPSED Total elapsed time, nanoseconds

CPU Total on-cpu 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

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)




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