Improve code legibility in MDConsole
This commit is contained in:
1 parent
f40613cb05
commit
16e8e5eb61
1 file changed
+6
-1
+6
-1
@@ -116,7 +116,12 @@ final public static function setupCLI():void {
|
|||||||
|
|
||||||
if ($duration < 30) return;
|
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);
|
}, $startTime);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user