- 论坛徽章:
- 1
|
如果用完整的trace 文件作为源,输出更乱
[root@11gdg tmp]# awk -F\' '{a[$2]++;split($3,A,/ /);b[$2]+=A[3]}END{for(i in a){print i,a[i],"ela=",b[i]}}' test.txt
2162 ela= 0
latch free 11 ela= 317
TABLE ACCESS BY INDEX ROWID FND_DEBUG_RULE_OPTIONS (cr=0 pr=0 pw=0 time=0 us cost=2 size=72 card=3) 1 ela= 0
NESTED LOOPS (cr=0 pr=0 pw=0 time=76 us cost=0 size=54 card=1) 1 ela= 0
NESTED LOOPS (cr=2 pr=0 pw=0 time=31 us cost=5 size=197 card=1) 1 ela= 0
700010be795af88 1 ela= 0
latch: ges resource hash list 14 ela= 2921
HASH JOIN SEMI (cr=15 pr=0 pw=0 time=5495 us cost=6 size=66 card=3) 1 ela= 0
NESTED LOOPS (cr=10 pr=0 pw=0 time=92 us cost=6 size=122 card=1) 1 ela= 0
SORT ORDER BY (cr=2 pr=0 pw=0 time=57 us cost=9 size=227 card=1) 1 ela= 0
LOAD TABLE CONVENTIONAL (cr=11 pr=0 pw=0 time=4390 us) 1 ela= 0
TABLE ACCESS FULL FND_DEBUG_RULES (cr=14 pr=0 pw=0 time=48 us cost=5 size=45 card=1) 1 ela= 0
FIXED TABLE FULL X$KVIT (cr=0 pr=0 pw=0 time=12 us cost=0 size=11 card=1) 1 ela= 0
INDEX UNIQUE SCAN HR_ORGANIZATION_UNITS_PK (cr=2 pr=0 pw=0 time=8 us cost=0 size=4 card=1) 1 ela= 0
buffer deadlock 2678 ela= 14407
latch: cache buffers chains 22 ela= 11391
TABLE ACCESS BY INDEX ROWID HR_ORGANIZATION_INFORMATION (cr=3 pr=0 pw=0 time=25 us cost=1 size=21 card=1) 1 ela= 0
700010bcf254d30 1 ela= 0
|
|