Query: dappprof
OS: osx
Section: 1m
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
dappprof(1m) USER COMMANDS dappprof(1m)NAMEdappprof - profile user and lib function usage. Uses DTrace.SYNOPSISdappprof [-acehoTU] [-u lib] { -p PID | command }DESCRIPTIONdappprof 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 functionsEXAMPLESrun 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 1871FIELDSCALL Function call name ELAPSED Total elapsed time, nanoseconds CPU Total on-cpu time, nanoseconds COUNT Number of occurrencesDOCUMENTATIONSee the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver- bose descriptions explaining the output.EXITdappprof will sample until Ctrl-C is hit.AUTHORBrendan Gregg [Sydney, Australia]SEE ALSOdapptrace(1M), dtrace(1M), apptrace(1) version 1.10 May 14, 2005 dappprof(1m)
Related Man Pages |
---|
dappprof(1m) - mojave |
dtruss(1m) - mojave |
execsnoop(1m) - mojave |
procsystime(1m) - mojave |
procsystime(1m) - osx |
Similar Topics in the Unix Linux Community |
---|
PID -> User (I need to know the user of a PID) |
To find CPU Usage |
Info about ps command |
sed print between 2 patterns only last occurence |
UNIX ksh - To print the PID number and repeat count |