Use class constants from MDConsole to MDOutputHandler
This commit is contained in:
@ -14,7 +14,7 @@ class MDConsole {
|
||||
const STATUS_UPDATE = 1;
|
||||
const STATUS_DELETION = 2;
|
||||
const STATUS_ERROR = 3;
|
||||
const STATUS_SKIPPED = 3;
|
||||
const STATUS_SKIPPED = 4;
|
||||
|
||||
const CONSOLE_LEVEL_COLORS = [
|
||||
self::STATUS_NOTICE => "",
|
||||
@ -115,11 +115,7 @@ class MDConsole {
|
||||
|
||||
if ($duration < 30) return;
|
||||
|
||||
toNote("Long script run", round($duration, 2), "Script run time, that's: ");
|
||||
toNote("Long script run", memory_get_peak_usage(), "Peak memory usage");
|
||||
toNote("Long script run", memory_get_usage(), "Memory usage at end of script");
|
||||
|
||||
# print_r($GLOBALS);
|
||||
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());
|
||||
}, $startTime);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user