簡體   English   中英

為什么命令“性能報告”什么都不顯示?

[英]why the command “perf report” shows nothing?

我使用“ perf record ./exe”,它帶有文件“ perf.data”; 但是,當我使用“性能報告”檢查數據時,什么也沒顯示,為什么? 我的perf版本是“ 0.0.2.PERF”,並使用Open suse Linux Enterprise Server 11(x86_64)。

當我在Ubuntu中執行相同的操作時,效果很好,Open suse和Ubuntu之間有什么區別嗎?

是的,ubuntu和open suse中的性能二進制文件具有不同的版本。 您最好從源代碼中編譯性能(如果您具有安裝依賴項的特權,那就是)。 與suse linux的功能和錯誤修復相比,linus技巧中的perf距功能和錯誤修正有數年之遙:

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
<make coffee, or something>

$ cd linux/tools/perf
$ make prefix=/usr/local install install-man
<it will complain about missing libs here, if any, which you should be able
 to deduce the corresponding rpm packages to install them from>

至於perf學習資源-恕我直言,它們不夠。 我首先閱讀了其wiki網站上perf教程 然后,我通過gmane瀏覽了perf用戶的郵件列表 我發現acme (具有redhat聲譽)在現成的分析中對我需要做的事情最有幫助。 您最好瀏覽一下perf用戶的郵件列表。

最后,我還瀏覽了perf的git日志消息,以查看人們一直在努力的功能和修復:

$ cd tools/perf
$ git log -- .

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM