2014年2月24日

oprofile使用方法

摘要: 安装oprofile,然后加载内核模块。#modprobe oprofile,模块加载后开始使用oprofile。1. 首先设置监视内核,使用debuginfo提供的内核,/boot下面的内核无法使用#opcontrol --vmlinux=/usr/lib/debug/boot/vmlinux-xxxxx如果不需要监视内核#opcontrol --no-vmlinux2. 启动oprofile#opcontrol --start3. 运行被监视的应用# program run4. dump监视数据#opcontrol --dump5. 关闭 oprofile#opcontrol --shut 阅读全文

posted @ 2014-02-24 10:01 SuperKing 阅读(815) 评论(0) 推荐(0) 编辑

导航