1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-09 15:47:23 +02:00

numOfQueries and totalTime moved to profilers

This commit is contained in:
David Grudl
2012-02-06 18:15:52 +01:00
parent 24511a1d96
commit efa3a48232
5 changed files with 32 additions and 19 deletions

View File

@@ -80,6 +80,8 @@ class DibiEvent
}
dibi::$elapsedTime = FALSE;
dibi::$numOfQueries++;
dibi::$sql = $sql;
}
@@ -96,7 +98,6 @@ class DibiEvent
$this->time += microtime(TRUE);
dibi::$elapsedTime = $this->time;
dibi::$totalTime += $this->time;
$this->connection->totalTime += $this->time;
return $this;
}