You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Once we have run the query we will calculate the time that it took to run and
// then log the query, bindings, and execution time so we will report them on
// the event that the developer needs them. We'll log time in milliseconds.
$this->logQuery(
$query, $bindings, $this->getElapsedTime($start)
);
$start = microtime(true);
$startMemory = memory_get_usage(false);
//// $endMemory = memory_get_usage(false);
// Once we have run the query we will calculate the time that it took to run and // then log the query, bindings, and execution time so we will report them on // the event that the developer needs them. We'll log time in milliseconds. $this->logQuery(
$query, $bindings, $this->getElapsedTime($start), $endMemory - $startMemory
);
// $endMemory - $startMemory means $memoryUsage
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently queries time is logged
framework/src/Illuminate/Database/Connection.php
Lines 826 to 830 in b6f4732
How about logging also memory usage, It would be useful to search for peaks.
framework/src/Illuminate/Database/Connection.php
Lines 749 to 767 in b6f4732
Beta Was this translation helpful? Give feedback.
All reactions