[英]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.