zoukankan      html  css  js  c++  java
  • Linux利器之perf(火焰图)

    1 Ubuntu下安装perf

    在Ubuntu18上默认没有安装perf,可以通过如下命令尝试:sudo apt-get install linux-tools

    结果出来以下内容:

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package linux-tools is a virtual package provided by:
      linux-tools-oem-osp1 5.0.0.1025.28
      linux-tools-gke-5.0 5.0.0.1023.12
      linux-tools-virtual-hwe-18.04-edge 5.3.0.12.83
      linux-tools-virtual-hwe-18.04 5.0.0.32.89
      linux-tools-virtual 4.15.0.66.68
      linux-tools-oracle 4.15.0.1027.30
      linux-tools-oem 4.15.0.1059.63
      linux-tools-lowlatency-hwe-18.04-edge 5.3.0.12.83
      linux-tools-lowlatency-hwe-18.04 5.0.0.32.89
      linux-tools-lowlatency 4.15.0.66.68
      linux-tools-gke-4.15 4.15.0.1046.49
      linux-tools-generic-hwe-18.04-edge 5.3.0.12.83
      linux-tools-generic-hwe-18.04 5.0.0.32.89
      linux-tools-generic 4.15.0.66.68
      linux-tools-gcp 5.0.0.1021.26
      linux-tools-aws 4.15.0.1052.51
    You should explicitly select one to install.
    
    E: Package 'linux-tools' has no installation candidate

     一般选择安装 linux-tools-generic 就好了,使用如下命令:

    sudo apt-get install linux-tools-common 
    sudo apt-get install linux-tools

    可能提示错误,这个时候按照提示升级安装即可:

    WARNING: perf not found for kernel 4.15.0-48
    
      You may need to install the following packages for this specific kernel:
        linux-tools-4.15.0-48-generic
        linux-cloud-tools-4.15.0-48-generic
    
      You may also want to install one of the following packages to keep up to date:
        linux-tools-generic
        linux-cloud-tools-generic
  • 相关阅读:
    关于网络调试助手
    阿里云之设备连接方法学习
    阿里云学习
    Jquery ThickBox的使用
    推荐几款制作网页滚动动画的 JavaScript 库
    Javascript动态操作CSS总结
    css3动画属性系列之transform细讲scale缩放
    JS函数重载解决方案
    从Java开发者的视角解释JavaScript
    理解JavaScript中的事件路由冒泡过程及委托代理机制
  • 原文地址:https://www.cnblogs.com/kuliuheng/p/11698459.html
Copyright © 2011-2022 走看看