Show Table of Contents
A.15. OProfile
OProfile 為一「oprofile」套件提供的低額外負載、系統性效能監控工具。此工具使用處理序上的效能監控硬體,以取出系統上有關 kernel 與可執行檔案的資訊,例如:當記憶體受參閱,二階快存(second-level cache)的請求數量與接收到的硬體中斷請求。OProfile 亦能簡介運作於 Java Virtual Machine (JVM)中的應用程式。
OProfile 提供以下工具。請注意,舊版「
opcontrol」工具與新的 「operf」工具是互斥的。
- ophelp
- 為系統處理器顯示可使用事件,且提供各簡要描述。
- opimport
- 為系統將樣本資料庫檔案自外部二進制模式轉變為本地模式。僅能在分析一不同架構的樣本資料庫時使用。
- opannotate
- 為可執行檔案生產標註資源,若應用程式為 debugging 標誌編譯。
- opcontrol
- 編譯哪一資料為分析運作中收集。
- operf
- 試圖取代「
opcontrol」。「operf」工具使用 Linux 效能事件子系統,使您能夠更精確地專注於分析。此工具為單一程序或橫跨系統的工具,並能夠更好的與系統上其他使用效能監控硬體的工具共存。不同於「opcontrol」,最初設定並不需要,且此工具能夠在沒有 root 權限的情況下使用,除非「--system-wide」選項正在使用。 - opreport
- 取出設定檔資料。
- oprofiled
- 作為 daemon 運作,以定期顯示樣本資料至硬碟。
舊版模式(
opcontrol、oprofiled,與程序後工具)仍可以取得,但不再為分析方式所建議。
更多有關其中任何的命令的詳細資訊,請參閱 OProfile man page:
$ man oprofile

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.