dfc trace performance anaysis

1)设置dfc.properties enable dfc trace
dfc.tracing.enable=true
dfc.tracing.verbose=true
dfc.tracing.max_stack_depth=0
dfc.tracing.include_rpcs=true
dfc.tracing.mode=compact
dfc.tracing.include_session_id=true

2)获取trace 文件,使用awk进行转换,使trace可读性更好,有利于分析

3)traceD6.awk

This script converts a DFC trace file to a file ready to be loaded into Microsoft Excel in order to identify big/expensive queries that take a long time to return.

- Execute the following command

awk32 traceD6.awk < D6_TRACE_FILE > OUTPUT_FILE

- Use Microsoft Excel to load the output file using '&' as delimiter.
- Sort by "Response Time" (Column B) to identify the queries with the longest response times.

4) trace_rpc_histD6.awk

This script is provided to help understand the response time contribution of groups of commands by analyzing a DFC trace file and summarizing (Total Time, Average Time, Total Calls) each RPC. It should be used to identify RPC's that take a short time for each individual call but they can be expensive because of repetitive usage.

- Execute the following command

awk trace_rpc_histD6.awk < D6_TRACE_FILE > OUTPUT_FILE
- The output file contains 3 sections: Summary Information, Profile of RPC Calls, Query + Response Time Information.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值