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