Our next example show CPU usage by MySQL user.
Code:
mysql> SELECT USER,CPU_TIME FROM information_schema.user_statistics ORDER BY CPU_TIME\G
*************************** 1. row ***************************
USER: XXXXXXXX_noid3
CPU_TIME: 0
*************************** 2. row ***************************
USER: root
CPU_TIME: 0
*************************** 3. row ***************************
USER: YYYYYYYY_micval
CPU_TIME: 0
*************************** 4. row ***************************
USER: eximstats
CPU_TIME: 0
*************************** 5. row ***************************
USER: XXXXXXXX_noid5
CPU_TIME: 1
*************************** 6. row ***************************
USER: XXXXXXXX_noid4
CPU_TIME: 1
*************************** 7. row ***************************
USER: XXXXXXXX_noid2
CPU_TIME: 15
*************************** 8. row ***************************
USER: YYYYYYYY_1234567
CPU_TIME: 20
8 rows in set (0.00 sec)