1N/AThe following is a demonstration of the dappprof command,
1N/A
1N/AThis is the usage for version 0.60,
1N/A
1N/A # dappprof -h
1N/A USAGE: dappprof [-cehoTU] [-u lib] { -p PID | command }
1N/A
1N/A -p PID # examine this PID
1N/A -a # print all details
1N/A -c # print syscall counts
1N/A -e # print elapsed times (us)
1N/A -o # print on cpu times
1N/A -T # print totals
1N/A -u lib # trace this library instead
1N/A -U # trace all libraries + user funcs
1N/A -b bufsize # dynamic variable buf size
1N/A eg,
1N/A dappprof df -h # run and examine "df -h"
1N/A dappprof -p 1871 # examine PID 1871
1N/A dappprof -ap 1871 # print all data
1N/A
1N/A
1N/A
1N/AThe following shows running dappprof with the "banner hello" command.
1N/AElapsed and on-cpu times are printed (-eo), as well as counts (-c) and
1N/Atotals (-T),
1N/A
1N/A # dappprof -eocT banner hello
1N/A
1N/A # # ###### # # ####
1N/A # # # # # # #
1N/A ###### ##### # # # #
1N/A # # # # # # #
1N/A # # # # # # #
1N/A # # ###### ###### ###### ####
1N/A
1N/A
1N/A CALL COUNT
1N/A __fsr 1
1N/A main 1
1N/A banprt 1
1N/A banner 1
1N/A banset 1
1N/A convert 5
1N/A banfil 5
1N/A TOTAL: 15
1N/A
1N/A CALL ELAPSED
1N/A banset 37363
1N/A banfil 147407
1N/A convert 149606
1N/A banprt 423507
1N/A banner 891088
1N/A __fsr 1694349
1N/A TOTAL: 3343320
1N/A
1N/A CALL CPU
1N/A banset 7532
1N/A convert 8805
1N/A banfil 11092
1N/A __fsr 15708
1N/A banner 48696
1N/A banprt 388853
1N/A TOTAL: 480686
1N/A
1N/AThe above output has analysed user functions (the default). It makes it
1N/Aeasy to identify which function is being called the most (COUNT), which
1N/Ais taking the most time (ELAPSED), and which is consuming the most CPU (CPU).
1N/AThese times are totals for all the functions called.
1N/A
1N/A