Improve code legibility in MDConsole
This commit is contained in:
parent
f40613cb05
commit
16e8e5eb61
|
@ -116,7 +116,12 @@ final class MDConsole {
|
|||
|
||||
if ($duration < 30) return;
|
||||
|
||||
self::note("Long script run" . PHP_EOL . "Script run time, that's: " . \round($duration, 2) . PHP_EOL . "Peak memory usage: " . memory_get_peak_usage() . PHP_EOL . "Memory usage at end of script: " . \memory_get_usage());
|
||||
$longDurationMsg = "Long script run" . PHP_EOL;
|
||||
$longDurationMsg .= "Script run time, that's: " . \round($duration, 2) . PHP_EOL;
|
||||
$longDurationMsg .= "Peak memory usage: " . \memory_get_peak_usage() . PHP_EOL;
|
||||
$longDurationMsg .= "Memory usage at end of script: " . \memory_get_usage() . PHP_EOL;
|
||||
|
||||
self::note($longDurationMsg);
|
||||
}, $startTime);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user