oProfile 学习

时间:2015-05-14 13:32:15   收藏:0   阅读:206

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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!