Linux perf命令
来源:互联网 发布:淘宝卖家怎么开发票 编辑:程序博客网 时间:2024/05/21 09:51
perf是一款集成于Linux内核(2.6+)性能分析工具。这里所用平台:RHEL6 64bit
安装:
perf是随着Linux内核(2.6+)代码一起发布的,安装很简单,默认安装没有激活TUI(text-based user interface)选项的,如果要激活TUI选项,前提是要安装newt-devel RPM包。
[root@rhel6164 ~]# rpm -qa | grep newt-develnewt-devel-0.52.11-2.el6.x86_64 #如果要激活perf的TUI选项,就要提前安装newt-devel包[root@rhel6164 ~]# cd linux-3.10.34/tools/perf/ #进入内核perf目录[root@rhel6164 perf]# make #直接编译perf[root@rhel6164 perf]# make install DESTDIR="installation_path" #不用默认安装路径,指定安装路径到“installation_path"[root@rhel6164 perf]# perf --versionperf version 3.10.34使用:
直接在输入perf就可以看到perf的使用说明
[root@rhel6164 ~]# perf usage: perf [--version] [--help] COMMAND [ARGS] The most commonly used perf commands are: annotate Read perf.data (created by perf record) and display annotated code archive Create archive with object files with build-ids found in perf.data file bench General framework for benchmark suites buildid-cache Manage build-id cache. buildid-list List the buildids in a perf.data file diff Read two perf.data files and display the differential profile evlist List the event names in a perf.data file inject Filter to augment the events stream with additional information kmem Tool to trace/measure kernel memory(slab) properties kvm Tool to trace/measure kvm guest os list List all symbolic event types lock Analyze lock events mem Profile memory accesses record Run a command and record its profile into perf.data report Read perf.data (created by perf record) and display the profile sched Tool to trace/measure scheduler properties (latencies) script Read perf.data (created by perf record) and display trace output stat Run a command and gather performance counter statistics test Runs sanity tests. timechart Tool to visualize total system behavior during a workload top System profiling tool. trace strace inspired tool probe Define new dynamic tracepoints See 'perf help COMMAND' for more information on a specific command.
0 0
- Linux perf命令
- linux perf
- perf命令使用
- Linux perf monitor tools
- 电子书:《Linux Perf Master》
- perf
- perf
- perf
- perf
- perf
- perf
- perf
- perf
- Perf
- Perf
- linux性能监测工具perf
- perf for Linux 的安装与使用
- Perf -- Linux下的性能分析工具
- juv rtmp client android speex音频解析 播放red5的音频流实现
- 抽象工厂+反射+配置文件 实现数据访问程序
- GROUP BY 与聚合函数 使用注意点
- ofbiz 登录时默认进入一个指定的模块
- xampp phpmyadmin的配置
- Linux perf命令
- 一个APP爆炸的时代,如果没有wifi
- 将博客搬至CSDN
- javascript scope chain
- jboss中对Oracle数据源加密配置
- hbase读写优化小记
- SVM基本概念小结
- 近两天
- Failed to issue method call: Unit mysql.service failed to load: No such file or directory的解决办法