Show Table of Contents
A.7. perf
perf 提供一些有用的指令,此章节列出了其中一些指令。perf 的更多信息请参见《 红帽企业版 7 开发者指南》, 可在下列网站中查找 http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/ 或者参见手册页。
- perf stat
- 此命令为常见性能事件提供整体数据,包括执行步骤和消耗所用的时间周期。您可使用选项标志来收集事件数据,而非默认测量事件。自红帽企业版 Linux 6.4 起,根据一个或多个特定控制组(c 组),可使用
perf stat筛选监控。更多信息请参见手册页:$ man perf-stat
- perf record
- 此命令将性能数据记录到随后可使用
perf report分析的文件中。更多信息,请参见手册页。$ man perf-record
- perf report
- 此命令从文件中读取性能数据并分析记录数据,更多信息,请参见手册页。
$ man perf-report
- perf list
- 此命令列出特定机器上有效事件。这些事件因系统性能监控硬件和软件配置而异。更多信息,请参见手册页。
$ man perf-list
- perf top
- 此命令执行与 top 工具相似的功能。它实时生成并显示性能计数器配置文件。更多信息,请参见手册页。
$ man perf-top
- perf trace
- 此命令执行与 strace 工具相似的功能。它监控特定线程或进程使用的系统调用以及该应用程序接收的所有信号。可获得其他的跟踪目标。请参见手册页以查看完整列表:
$ man perf-trace

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.