ubuntu安装支持perf工具

1、ubuntu安装支持perf工具
sudo apt install linux-tools-common
sudo apt install linux-oem-5.6-tools-common
sudo apt install  linux-cloud-tools-5.4.0-42-generic
2、在LINUX上测量TLB未命中的命令
sudo perf stat -e dTLB-load-misses,iTLB-load-misses /bin/ls > /dev/null

 Performance counter stats for '/bin/ls':

             1,190      dTLB-load-misses                                            
               520      iTLB-load-misses                                            

       0.001478482 seconds time elapsed

       0.001504000 seconds user
       0.000000000 seconds sys

你可能感兴趣的:(ubuntu安装支持perf工具)