Skip to content

Commit

Permalink
Merge pull request #783 from hydephp/display-max-memory-usage-during-…
Browse files Browse the repository at this point in the history
…build

Display maximum memory used during the site build
  • Loading branch information
caendesilva authored Dec 27, 2022
2 parents dfe44a9 + 7557e57 commit d31e612
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/framework/src/Console/Commands/BuildSiteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ protected function printFinishMessage(float $time_start): void
{
$execution_time = (microtime(true) - $time_start);
$this->info(sprintf(
"\nAll done! Finished in %s seconds. (%sms)",
"\nAll done! Finished in %s seconds (%sms) with %sMB peak memory usage",
number_format($execution_time, 2),
number_format($execution_time * 1000, 2)
number_format($execution_time * 1000, 2),
number_format(memory_get_peak_usage() / 1024 / 1024, 2)
));

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

0 comments on commit d31e612

Please sign in to comment.