简体   繁体   English

为什么命令“性能报告”什么都不显示?

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

I use "perf record ./exe",and it come up with the file "perf.data"; 我使用“ perf record ./exe”,它带有文件“ perf.data”; however, when I use "perf report" to check the data, it shows nothing ,why? 但是,当我使用“性能报告”检查数据时,什么也没显示,为什么? my perf version is "0.0.2.PERF" and use Open suse Linux Enterprise Server 11 (x86_64). 我的perf版本是“ 0.0.2.PERF”,并使用Open suse Linux Enterprise Server 11(x86_64)。

and when I do the same thing in Ubuntu, it work well, is there any difference between Open suse and Ubuntu? 当我在Ubuntu中执行相同的操作时,效果很好,Open suse和Ubuntu之间有什么区别吗?

Yes the perf binaries in ubuntu and open suse are of different versions. 是的,ubuntu和open suse中的性能二进制文件具有不同的版本。 You'd be better off compiling perf from it's source (if you have the privileges to install the dependencies, that is). 您最好从源代码中编译性能(如果您具有安装依赖项的特权,那就是)。 perf in linus' tip are light-years away in term of features and bugfixes compared to the one in suse linux: 与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>

As for perf learning sources - there are not enough of them IMHO. 至于perf学习资源-恕我直言,它们不够。 I started out by reading the perf tutorial at its wiki site . 我首先阅读了其wiki网站上perf教程 Then I skimmed through the perf-user mailing list via gmane . 然后,我通过gmane浏览了perf用户的邮件列表 I found this post on off-box analysis by acme (of redhat fame) the most helpful for what I needed to do. 我发现acme (具有redhat声誉)在现成的分析中对我需要做的事情最有帮助。 You'd do well to skim through the perf user mailing list. 您最好浏览一下perf用户的邮件列表。

Lastly, I also skim through perf's git log messages to see features and fixes that people have been working on: 最后,我还浏览了perf的git日志消息,以查看人们一直在努力的功能和修复:

$ cd tools/perf
$ git log -- .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM