164
POWER7 and Optimization and Tuning Guide
Example B-2 is a breakdown of samples of the threads that are running on the system. In
addition to the columns described in Example B-1 on page 163, this report has
PID
and
TID
columns that detail the process IDs and thread IDs.
Example B-2 Excerpt from a tprof report - breakdown of threads that are running on the system
Process PID TID Total Kernel User Shared Other
======= === === ===== ====== ==== ====== =====
wait 16392 16393 1874 1874 0 0 0
wait 12294 12295 1873 1873 0 0 0
wait 20490 20491 1860 1860 0 0 0
./version1 245974 606263 1672 35 1637 0 0
wait 8196 8197 203 203 0 0 0
/usr/bin/tprof 291002 643291 13 13 0 0 0
/usr/bin/tprof 274580 610467 2 0 0 2 0
/etc/syncd 73824 110691 2 2 0 0 0
/usr/bin/sh 245974 606263 1 1 0 0 0
/usr/bin/sh 245976 606265 1 1 0 0 0
/usr/bin/trcstop 245976 606263 1 1 0 0 0
swapper 0 3 1 1 0 0 0
rmcd 155876 348337 1 1 0 0 0
======= === === ===== ====== ==== ====== =====
Total 7504 5865 1637 2 0
Total Samples = 7504 Total Elapsed Time = 18.76s
Example B-3 from the report gives the subroutine-level profile for the version1 program. In
this simple example, all of the time is spent in
main()
.
Example B-3 Excerpt from a tprof report - subroutine-level profile for the version1 program, with all time
spent in main()
Profile: ./version1
Total Ticks For All Processes (./version1) = 1637
Subroutine Ticks % Source Address Bytes
============= ====== ====== ======= ======= =====
.main 1637 21.82 version1.c 350 536
More information about using AIX
tprof
for Java programs is available in “Hot method or
routine analysis” on page 177.
The functionality of
tprof
is rich. As such, it cannot be fully described in this guide. For
complete
tprof
documentation, see tprof Command, available at:
http://publib.boulder.ibm.com/infocenter/aix/v7r1/index.jsp?topic=/com.ibm.aix.cmd
s/doc/aixcmds5/tprof.htm
Содержание Power System POWER7 Series
Страница 2: ......
Страница 36: ...20 POWER7 and POWER7 Optimization and Tuning Guide...
Страница 70: ...54 POWER7 and POWER7 Optimization and Tuning Guide...
Страница 112: ...96 POWER7 and POWER7 Optimization and Tuning Guide...
Страница 140: ...124 POWER7 and POWER7 Optimization and Tuning Guide...
Страница 162: ...146 POWER7 and POWER7 Optimization and Tuning Guide...
Страница 170: ...154 POWER7 and POWER7 Optimization and Tuning Guide...
Страница 222: ...POWER7 and POWER7 Optimization and Tuning Guide POWER7 and POWER7 Optimization and Tuning Guide...
Страница 223: ......