首页 > 其他 > 详细

oProfile 学习

时间:2015-05-14 13:32:15      阅读:206      评论:0      收藏:0      [点我收藏+]

oProfile工具可以分析CPU的负载量

只要对目标程序加上 -g 后重新编译,即可用oProfile进行分析

例如在测试apache的性能时,

增加 -g 编译选项
[crifan@localhost lrzsz-0.12.20]$ CFLAGS=-g ./configure

 

问题:
opcontrol --start失败
解决办法
[root@mysqlmaster03 boot]# opcontrol –deinit
[root@mysqlmaster03 boot]# echo 0 > /proc/sys/kernel/watchdog
[root@mysqlmaster03 boot]# opcontrol –init

oProfile 学习

原文:http://www.cnblogs.com/maxpak/p/4502840.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!