beautypg.com

Step 9: viewing per instruction statistics, Step 10: stopping the hpcpi daemon – HP XC System 3.x Software User Manual

Page 33

background image

Step 8: Viewing Per Procedure Statistics for the Application

The following command enables you to view per-procedure statistics for the image myApp:

% hpcpiprof myApp

The output is as follows:

Event Name Events Period Samples
---------- ------------- ------ --------
CPU_CYCLES 1925103240000 60000 32085054

CPU_CYCLES % cum% procedure image
---------- ----- ------ ----------- -----
191201e7 99.3% 99.3% routine1 myApp
1309e7 0.7% 100.0% unknown_rou myApp

For descriptions of the output data, see

“Viewing Per-Procedure Data: hpcpiprof image_name

(page 46)

.

Step 9: Viewing Per Instruction Statistics

The following command enables you to view per-instruction statistics for the procedure routine1
in myApp:

% hpcpilist routine1 myApp

The output is as follows:

Event Name Events Period
---------- ------------- ------
CPU_CYCLES 1912010880000 60000

CPU_CYCLES PC B ASM
---------- --------------- - -------------------------------------
0 routine1+0x0000 alloc r33=ar.pfs,0,4,0,0
0 routine1+0x0001 adds r34=0,sp
0 routine1+0x0002 adds sp=-16,sp
0 routine1+0x0010 adds r35=0,gp
0 routine1+0x0011 nop.f 0
0 routine1+0x0012 mov r32=rp;;
2333e6 routine1+0x0020 : ldfs f7=[r34]

:
:

For descriptions of the output data, see

“Viewing Per-Instruction Data: hpcpilist

procedure_name image_name

” (page 47)

.

Step 10: Stopping the HPCPI Daemon

When you are done collecting data, enter the following command to stop the HPCPI daemon:

% hpcpictl quit

Step 8: Viewing Per Procedure Statistics for the Application

33