We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format_bytes
1 parent ea03490 commit ea12aefCopy full SHA for ea12aef
src/Log/ExceptionHandler.php
@@ -40,8 +40,8 @@ private function registerShutdownFunction()
40
$executionTime = round($this->timeFinished - $this->timeStarted, 3);
41
$this->log->info("Execution time: {$executionTime} sec.");
42
43
- $memoryPeak = round(memory_get_peak_usage(true) / (1024 * 1024));
44
- $this->log->info("Memory peak usage: {$memoryPeak}M.");
+ $memoryPeak = format_bytes(memory_get_peak_usage(true));
+ $this->log->info("Memory peak usage: {$memoryPeak}.");
45
46
$this->log->info('%separator%');
47
0 commit comments