Show Table of Contents
A.7. perf
perf 工具提供若干實用的命令,其中有一些被列在本章節。更多有關「perf」的詳細資訊,請參閱《Red Hat Enterprise Linux 7 開發者指引Developer Guide》。網址為:http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/,或參照 man page。
- perf stat
- 此命令為常見效能事件提供總體數據,包括已執行指令與消耗的時間週期。您能使用選項旗幟以聚集特定事件的數據,而非預設度量事件。Red Hat Enterprise Linux 6.4 中,能夠使用
perf stat以基於一個或更多特定控制群組(cgroup),篩選監視。更多資訊,請參閱 man page:$ man perf-stat
- perf record
- 此命令將效能資料紀錄在一個能夠使用
perf report,進行稍後分析的檔案。更多詳細資訊,請參閱 man page:$ man perf-record
- perf report
- 此命令從一個檔案閱讀效能資料,並分析記錄資料。更多詳細資訊,請參閱 man page:
$ man perf-report
- perf list
- 此命令列出在特定機器上的可用事件。這些事件根據效能監視硬體和系統的軟體設定而有所不同。更多資訊,請參閱 man page:
$ man perf-list
- perf top
- 此命令與 top工具執行類似功能。此命令產生並顯示實時效能相應設定檔。更多資訊,請參閱 man page:
$ man perf-top
- perf trace
- 此命令與 strace工具執行類似功能。此命令監視由特定執行緒或程序使用的系統呼叫,和所有由其應用程式接收的訊號。更多的追蹤目標,請參閱 man page 中的完整列表:
$ 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.