2012-12-11 113 views
0

我使用“perf record ./exe”,并且它提供了文件“perf.data”;然而,当我使用“性能报告”来检查数据时,它什么也没有显示,为什么? 我的perf版本是“0.0.2.PERF”并使用Open suse Linux Enterprise Server 11(x86_64)。为什么命令“perf report”什么都没有显示?

当我在unbuntu上做同样的事情时,它运行良好,Open suse和Unbuntu之间有什么区别吗?

回答

1

是的ubuntu和开放suse的perf二进制文件是不同的版本。你最好从它的源代码编译perf(如果你有权限安装依赖关系,那就是)。 PERF在Linus的尖端是光年远在功能和错误修正项相比,一个在SUSE Linux:

$ 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学习资源 - 没有足够的人恕我直言。我通过阅读perf tutorial at its wiki site开始。然后我通过gmane浏览了perf-user mailing list。我发现this post on off-box analysisacme(红帽成名)对我需要做的事情最有帮助。你最好浏览perf用户邮件列表。

最后,我还通过PERF的git的日志消息脱脂看功能和修复,人们一直在努力:

$ cd tools/perf 
$ git log -- . 
+0

或做''混帐克隆--depth 1个的git://混帐... “如果你不想煮咖啡。 – holygeek

+0

我收到一些提示。非常感谢! – user861491

+0

你会推荐一些性能良好的资源吗?我非常感激! – user861491