gpt4 book ai didi

profiler - 我无法运行 "perf"命令。 Perf 是一个用于堆栈跟踪的 linux 分析器

转载 作者:行者123 更新时间:2023-12-05 08:42:37 26 4
gpt4 key购买 nike

尝试使用性能分析器。我已经安装了 linux 通用工具,但没有成功。这是我收到的消息:


r@r-K55A:~$ perf
WARNING: perf not found for kernel 3.16.0-45

You may need to install the following packages for this specific kernel:
linux-tools-3.16.0-45-generic
linux-cloud-tools-3.16.0-45-generic

You may also want to install one of the following packages to keep up to date:
linux-tools-generic
linux-cloud-tools-generic

我已尝试安装上述软件包,但出现以下错误:


Unable to locate package linux-tools-3.16.0-45-generic
E: Couldn't find any package by regex 'linux-tools-3.16.0-45-generic'

最佳答案

您可以安全地使用此代码段:

sudo apt install linux-tools-common linux-tools-generic linux-tools-$(uname -r)

关于profiler - 我无法运行 "perf"命令。 Perf 是一个用于堆栈跟踪的 linux 分析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39456308/

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