Skip to content

Commit d31e612

Browse files
authored
Merge pull request #783 from hydephp/display-max-memory-usage-during-build
Display maximum memory used during the site build
2 parents dfe44a9 + 7557e57 commit d31e612

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/framework/src/Console/Commands/BuildSiteCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ protected function printFinishMessage(float $time_start): void
106106
{
107107
$execution_time = (microtime(true) - $time_start);
108108
$this->info(sprintf(
109-
"\nAll done! Finished in %s seconds. (%sms)",
109+
"\nAll done! Finished in %s seconds (%sms) with %sMB peak memory usage",
110110
number_format($execution_time, 2),
111-
number_format($execution_time * 1000, 2)
111+
number_format($execution_time * 1000, 2),
112+
number_format(memory_get_peak_usage() / 1024 / 1024, 2)
112113
));
113114

114115
$this->info('Congratulations! 🎉 Your static site has been built!');

0 commit comments

Comments
 (0)