X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FConsole%2FCommands%2FChatlibGenerate.php;h=04c9e41b63a07887d4f7b78a753807995f2415d5;hb=4c72d4b8bec61eba5b3dc43df5eafd890e123d37;hp=5ea85f6838bcc19a326c9dbb8cc88eb626ed5ac3;hpb=e1e352a985c2da1cc0e4ad4716244261445a2604;p=alttp.git diff --git a/app/Console/Commands/ChatlibGenerate.php b/app/Console/Commands/ChatlibGenerate.php index 5ea85f6..04c9e41 100644 --- a/app/Console/Commands/ChatlibGenerate.php +++ b/app/Console/Commands/ChatlibGenerate.php @@ -27,8 +27,15 @@ class ChatlibGenerate extends Command { * @return int */ public function handle() { + + $start = microtime(true); + $this->line('loading database'); $db = new ChatLib(); $db->loadFrom($this->argument('which')); + $this->line( + number_format(microtime(true) - $start, 2).'s '. + number_format(memory_get_usage() / 1024 / 1024, 3).'MB now '. + number_format(memory_get_peak_usage() / 1024 / 1024, 3).'MB peak'); $amount = intval($this->argument('amount')); for ($i = 0; $i < $amount; ++$i) {