gpt4 book ai didi

linux - 为什么命令 "perf report"什么都不显示?

转载 作者:太空宇宙 更新时间:2023-11-04 11:27:21 42 4
gpt4 key购买 nike

我使用“perf record ./exe”,它产生了文件“perf.data”;但是,当我使用“perf report”检查数据时,它什么也没有显示,为什么?我的性能版本是“0.0.2.PERF”并使用 Open suse Linux Enterprise Server 11 (x86_64)。

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

最佳答案

是的,ubuntu 和 open suse 中的 perf 二进制文件是不同的版本。你最好从它的源代码编译 perf(如果你有安装依赖项的权限,那就是)。与 suse linux 中的 perf 相比,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 学习资源 - 恕我直言,它们还不够。我开始阅读 perf tutorial at its wiki site .然后我浏览了 perf-user mailing list通过gmane .我找到了 this post on off-box analysis通过 acme (以 redhat 闻名)对我需要做的事情最有帮助。您最好浏览一下 perf 用户邮件列表。

最后,我还浏览了 perf 的 git 日志消息,以查看人们一直致力于的功能和修复:

$ cd tools/perf
$ git log -- .

关于linux - 为什么命令 "perf report"什么都不显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13820136/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com