Install Perf
Ubuntu
Enter the following command to install: :
sudo apt-get install linux-tools-common
Enter perf top, if it can be executed, the installation is successful. If prompted to install a special version, the installation can be completed.