cprfed (edit and output performance analysis trace information)
Format
cprfed [-h] | [-Dump | -CSV] [-Time start-time,end-time]
[-ProcessID process-id[,process-id...]]
[-TraceFile prf-trace-file-name[,prf-trace-file-name...]
| -AllTraceFile]
Function
This command inputs PRF trace information and edits and outputs performance analysis trace information.
Arguments
Argument specification | Editing range |
---|---|
-Time 102345, | From 45 seconds past 10:23 on October 11, 2006, until the end of the trace file |
-Time,102345 | From the start of the trace file until 45 seconds past 10:23 on October 11, 2006 |
-Time 102345,102350 | From 45 seconds past 10:23 on October 11, 2006, until 50 seconds past 10:23 on October 11, 2006 |
-Time 1023451012,1023501013 | From 45 seconds past 10:23 on October 12, 2006, until 50 seconds past 10:23 on October 13, 2006 |
-Time 10234510122005,10235010132005 | From 45 seconds past 10:23 on October 12, 2005, until 50 seconds past 10:23 on October 13, 2005 |
The table below shows the combinations of command options that can be specified.
Table 4-2 List of argument (command option) combinations (cprfed command)
Command option | -h | -Dump | -CSV | -Time | -ProcessID | -TraceFile | -AllTraceFile |
---|---|---|---|---|---|---|---|
-h | -- | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
-Dump | ![]() | -- | ![]() | Y | Y | Y | Y |
-CSV | ![]() | ![]() | -- | Y | Y | Y | Y |
-Time | ![]() | Y | Y | -- | Y | Y | Y |
-ProcessID | ![]() | Y | Y | Y | -- | Y | Y |
-TraceFile | ![]() | Y | Y | Y | Y | -- | N |
-AllTraceFile | ![]() | Y | Y | Y | Y | N | -- |
Return values
Output format
PRF: aa...aa Process: bb...bb Thread: cc...cc(FF...FF) Trace: dd...dd
ProcessName: zz.zz
Event: eeeee Time: ffff/gg/hh ii:jj:kk lll/mmm/nnn
Rc: oo...oo
ClientAP:pp...pp qq...qq - rr...rr RootAP: ss...ss tt...tt - uu...uu
SendSCD: vv...vv ww...ww ReceiveSCD: xx...xx yy...yy
INT: XX...XX OPR: YY...YY
LookupName:ZZ..ZZ
Offset +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +a +b +c +d +e +f 0123456789abcdef
AAAA BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB CC...CC
AAAA BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB CC...CC
:
AAAA BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB BB CC...CC
PRF,Process,Thread,Trace,ProcessName,Event,Date,Time,Time(msec/usec/nsec),
Rc,ClientAP IP,ClientAP PID, ClientAP CommNo.,RootAP IP,RootAP PID,
RootAP CommNo.,SendSCD IP,SendSCD PID,ReceiveSCD IP,
ReceiveSCD PID,INT,OPR,LookupName,OPT,ASCII
aa...aa,bb...bb,cc...cc(CC...CC),dd...dd,zz...zz,ee...ee,ffff/gg/hh,ii:jj:kk,lll/mmm/nnn,oo...oo,pp...pp,qq...qq,rr...rr,ss...ss,tt...tt,uu...uu,vv...vv,ww...ww,xx...xx,yy...yy,XX...XX,YY...YY,ZZ...ZZ,DD...DD,EE...EE
Legend:
Symbol | Explanation |
---|---|
aa....aa | Record status (up to 6 characters):
|
bb....bb | Process ID of the process from which trace information was collected (up to 10 decimal digits) |
cc....cc | Thread ID of the thread in the process from which trace information was collected (up to 20 decimal digits) |
dd....dd | Trace serial number in the thread (up to 10 decimal digits) |
ee....ee | Event ID (6 hexadecimal digits (including the leading 0x)) |
ffff | Time at which the trace was collected (year) |
gg | Time at which the trace was collected (month) |
hh | Time at which the trace was collected (date) |
ii | Time at which the trace was collected (hour) |
jj | Time at which the trace was collected (minute) |
kk | Time at which the trace was collected (second) |
lll | Time at which the trace was collected (millisecond) |
mmm | Time at which the trace was collected (microsecond) |
nnn | Time at which the trace was collected (nanosecond) |
oo....oo | Return code (10 hexadecimal digits (including the leading 0x)) |
pp....pp | Client application IP address (xxx.xxx.xxx.xxx format) |
qq....qq | Client application process ID (up to 10 decimal digits) |
rr....rr | Client communication number (18 digits (including the leading 0x)) |
ss....ss | Root application IP address (xxx.xxx.xxx.xxx format) |
tt....tt | Root application process ID (up to 10 decimal digits) |
uu....uu | Root communication number (18 digits (including the leading 0x)) |
vv...vv | IP address of request source CTM (xxx.xxx.xxx.xxx format) |
ww...ww | Process ID of request source CTM (up to 10 decimal digits) |
xx...xx | IP address of request destination CTM (xxx.xxx.xxx.xxx format) |
yy...yy | Process ID of request destination CTM (up to 10 decimal digits) |
zz....zz | Process name (up to 32 characters) |
XX....XX | Interface name (up to 33 characters)# |
YY....YY | Operation name (up to 33 characters)# |
ZZ....ZZ | Lookup name (up to 33 characters)# Outputs schedule group names for the systems that execute batch applications. |
AAAA | Offset |
BB | Hexadecimal display of one byte information acquired in each event |
CC...CC | Expresses the contents of BB as the ASCII characters. The content that cannot be expressed as an ASCII character is output as a Period (.). |
DD...DD | Outputs the information acquired in each event in the hexadecimal format within 512 characters. The dump format information is output enclosed with double quotes (" "). |
EE...EE | The contents of DD are output as ASCII characters (maximum 514 characters). The ASCII characters are output enclosed with double quotes (" "). The code (control code) that cannot be displayed as an ASCII character is output as a period (.). One character (") is output as two characters ("") in the ASCII characters. This information is output in CSV format. |
FF...FF | Outputs the hash value (in decimal within 10 digits) of a thread. The hash value of a thread might not be output in the trace information acquired with the CTM and redirector. |
Input/output examples
cprfed -TraceFile prf_001
PRF: Rec Process: 516 Thread: 2204 Trace: 10
ProcessName: ctmd.exe
Event: 0x1406 Time: 2004/02/05 16:46:55 576/000/000
Rc: 0
ClientAP: 10.209.13.123 2148 - 0000000000000107 RootAP: 10.209.13.123
2200 - 0000000000000104
SendSCD: 10.209.13.122 516 ReceiveSCD: **** ****
INT: com/abcd/BookShop OPR: orderBook
LookupName: BookShop
cprfed -Dump -TraceFile prf_001
PRF: Rec Process: 516 Thread: 2204 Trace: 10
ProcessName: ctmd.exe
Event: 0x1406 Time: 2004/02/05 16:46:55 576/000/000
Rc: 0
ClientAP: 10.209.13.123 2148 - 0000000000000107 RootAP: 10.209.13.123
2200 - 0000000000000104
SendSCD: 10.209.13.122 516 ReceiveSCD: **** ****
INT: com/abcd/BookShop OPR: orderBook
LookupName: BookShop
Offset +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +a +b +c +d +e +f 0123456789abcdef
+0000 0a d1 0d 7a 04 02 00 00 0a d1 0d 7b 64 08 00 00 ...z.......{d...
+0010 00 00 00 00 07 01 00 00 0a d1 0d 7b 98 08 00 00 ...........{....
+0020 00 00 00 00 04 01 00 00 00 00 00 00 63 6f 6d 2f ............com/
+0030 61 6d 61 7a 6f 73 6f 2f 42 6f 6f 6b 53 68 6f 70 abcd/BookShop
+0040 00 6f 72 64 65 72 42 6f 6f 6b 00 42 6f 6f 6b 53 .orderBook.BookS
+0050 68 6f 70 00 hop.
cprfed -CSV -TraceFile prf_001
PRF,Process,Thread,Trace,ProcessName,Event,Date,Time,Time(msec/usec/nsec),Rc,ClientAP IP,ClientAP PID, ClientAP CommNo.,RootAP IP,RootAP PID,RootAP CommNo.,SendSCD IP,SendSCD PID,ReceiveSCD IP,ReceiveSCD PID,INT,OPR,LookupName,OPT,ASCII
Rec,516,2204,10,ctmd.exe,0x1406,2004/02/05,16:46:55,576/000/000,
0,10.209.13.123,2148,0x0000000000000107,10.209.13.123,2200,
0x0000000000000104,10.209.13.122,516,****,****,com/abcd/BookShop,
orderBook,BookShop,
Notes