Reworked profiler

This commit is contained in:
Anton Terekhov
2011-07-29 13:05:23 +04:00
parent 77a62925d8
commit 165bf08c09
12 changed files with 2351 additions and 65 deletions

View File

@ -84,7 +84,7 @@ class MySQLiStatement extends DbStatement
*/
$mysqli = $this->driver->getConnection();
if (DEBUG) {
$profiler = Profiler::getInstance()->profilerQuery($sql);
$profiler = Profiler::getInstance()->profilerCommand('mysql', $sql);
$result = $mysqli->query($sql);
$profiler->end();
} else {