mirror of
https://github.com/dg/dibi.git
synced 2025-02-24 10:53:17 +01:00
DibiProfiler logs source files and lines
This commit is contained in:
parent
1a4ea39a60
commit
8a899c7ddb
@ -142,7 +142,7 @@ class DibiProfiler extends DibiObject implements IDibiProfiler, IDebugPanel
|
||||
|
||||
$ticket = & self::$tickets[$ticket];
|
||||
$ticket[3] += microtime(TRUE);
|
||||
list($connection, $event, $sql, $time) = $ticket;
|
||||
list($connection, $event, $sql, $time, , $source) = $ticket;
|
||||
|
||||
dibi::$elapsedTime = $time;
|
||||
dibi::$totalTime += $time;
|
||||
@ -189,6 +189,7 @@ class DibiProfiler extends DibiObject implements IDibiProfiler, IDebugPanel
|
||||
"OK: " . $sql
|
||||
. ($res instanceof DibiResult ? ";\n-- rows: " . $count : '')
|
||||
. "\n-- takes: " . sprintf('%0.3f', $time * 1000) . ' ms'
|
||||
. "\n-- source: " . implode(':', $source)
|
||||
. "\n-- driver: " . $connection->getConfig('driver') . '/' . $connection->getConfig('name')
|
||||
. "\n-- " . date('Y-m-d H:i:s')
|
||||
. "\n\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user