10

Is there a way/tool/technique to calculate the processor and memory cost of a specific MySQL query?

1
  • 4
    You might want to mention whether you've already used explain or not, and if so, what you find lacking about it. It may not give what you want, but if you haven't tried it, it's usually the first thing to try. Commented Dec 13, 2009 at 23:06

1 Answer 1

3

Check this sample:

sample at mysql.com

Sign up to request clarification or add additional context in comments.

2 Comments

Same page states that > MEMORY is not currently implemented I need a way to profile memory cost as well as the cpu.
SHOW PROFILES is deprecated, you can get better data with modern versions of MySQL using performance schema dev.mysql.com/doc/refman/5.7/en/performance-schema.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.