-
-
Notifications
You must be signed in to change notification settings - Fork 213
Conversation
Maybe we should use profiling on the database level for that? We could call |
Apparently it does calculate the network transportation time?
|
Seems you are right.
http://dev.mysql.com/doc/refman/5.0/en/general-thread-states.html |
930f397
to
5e7299d
Compare
If we want to use |
Here's a POC for the database variant: 8ff54fe |
This could be easily solved with a if ($driver instanceof SupportsProfilerInterface)
{
$foo = $driver->profiler();
} So if the driver supports it, you'll get the info and if not, you don't. But no BC break ;-) |
Regarding your pull request, I think we should include more/all the information not only the duration in the console. |
This is the complete output of
|
Personally, I only understand the first column (Duration). But I would include the full list of items. Maybe @LeoUnglaub knows if any of the others is ever useful for a PHP developer to debug something? |
For debugging PHP applications you normaly only need the duration. The other values normaly don't mean anything to PHP developers. However, if you have a query that kills down the database server, the columns SWAPS, SOURCE_FUNCTION, SOURCE_FILE and SOURCE_LINE are important to create bug reports in to the database server developers. Maybe it would make sence to include those values if the user is in a special expert debug mode. |
@LeoUnglaub only a summary of the duration or each individual one? |
I would say both. For 90% of all problems the overall time is enought to find the problem. However, the normal 90% of all problems are not the hard ones to debug. If you really have a 100 line SQL query, you need the individual times to see where exactly your query breaks performence. If it is the sending of the result set (<- maybe to large result set) or the parsing time (<- some missing braces). I would display the overall time but in a tooltip generate all values. |
As discussed on Mumble (October 9th), we will be using the initial |
No description provided.