Você pode tentar usar top | grep <application-name>
, e fornece várias estatísticas, incluindo o uso da CPU em porcentagem.
Exemplo: A saída enquanto monitora o aplicativo clementine usando top
, a coluna com números 8, 9 e um único 22 e 7 é a linha que mapeia a porcentagem de uso da CPU da clementina em um período de tempo que é executado
nits@nits-workstation:~$ top | grep clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 8:59.36 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 8:59.61 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 8:59.86 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:00.10 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:00.37 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:00.62 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:00.88 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:01.14 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:01.39 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:01.63 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:01.88 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:02.11 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:02.37 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:02.61 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:02.89 clementine
4729 nits 20 0 408m 101m 23m S 22 5.1 9:03.56 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:03.82 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:04.07 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:04.33 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:04.59 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:04.83 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:05.09 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:05.32 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:05.56 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:05.82 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:06.07 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:06.32 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:06.56 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:06.82 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:07.07 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:07.32 clementine
4729 nits 20 0 408m 101m 23m S 7 5.1 9:07.54 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:07.79 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:08.03 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:08.28 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:08.54 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:08.77 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:09.03 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:09.29 clementine
4729 nits 20 0 408m 101m 23m S 9 5.1 9:09.55 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:09.79 clementine
4729 nits 20 0 408m 101m 23m S 8 5.1 9:10.03 clementine