Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to tell the cpu time that a mysql query consumes?

Status
Not open for further replies.

lcs01

Programmer
Aug 2, 2006
182
US
As stated in the subject line, I am looking for a way to find out how much cpu time a query consumes.

Could someone tell me how?

Many thanks!
 
I don't know of any SQL way to do it, but some API's have functions to return information about the latest query, which may include time taken. In the C API, the mysql_info function returns information about update/insert/alter queries, but not for selects. However, it's probably clock time that gets reported, not CPU time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top