性能分析

环境centos 6.4


oprofile

1) yum 安装oprofile

2) 具体步骤见 http://blog.chinaunix.net/uid-13746440-id-3152484.html。 但是无vmlinux。

opcontrol --deinit
echo 0 > /proc/sys/kernel/nmi_watchdog

opcontrol --init 

opcontrol --reset

opcontrol --start --no-vmlinux

。。。。

结果不成功。


或者从这能得到opcontrol更具体的信息 http://blog.csdn.net/bobpen/article/details/18444885


3)怎么得到vmlinux?

按如下方式得到的vmlinux  不可使用。(从vmlinuz转vmlinux不可用)

opcontrol --start --no-vmlinux 报错 : 

"

ATTENTION: Use of opcontrol is discouraged.  Please see the man page for operf.

Using default event: CPU_CLK_UNHALTED:100000:0:1:1
Error: counter 0 not available nmi_watchdog using this resource ? Try:
opcontrol --deinit
echo 0 > /proc/sys/kernel/nmi_watchdog

"

solution:

opcontrol --deinit
echo 0 > /proc/sys/kernel/watchdog
opcontrol --init





gperf

1)安装

2) -llib

3)CPUPFOFILE=./test.prof ./test

4)pprof --text ./test ./test.prof     #见README说明

http://blog.csdn.net/panda_bear/article/details/8057646




gprof

.....


















http://blog.chinaunix.net/uid-13746440-id-3152484.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值