views:

69

answers:

1

Hello, How can I analyze the CPU time consumed by my Innodb queries?

I have innotop, but I cant seems to find where it is.

Thanks.

+1  A: 

You may analyze CPU usage by individual queries with SHOW PROFILE CPU command

AFAIK there is no way to check how much CPU "all innodb queries used".

noonex
+1 although do note that SHOW PROFILE CPU is not accurate. It uses a system call (getrusage()) which is only accurate to the process. It's noted on the page you linked to.
Morgan Tocker