-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add {memory_usage}
replacement
#8008
Conversation
c034e89
to
0294152
Compare
{memory_usage}
replacement
0294152
to
3653d74
Compare
Added changelog. |
*/ | ||
public function displayPerformanceMetrics(string $output): string | ||
{ | ||
return str_replace('{elapsed_time}', (string) $this->totalTime, $output); | ||
return str_replace( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be an after Filter at some point on the Welcome route - no business being in the main app class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I thought the same thing.
And probably Web Page Caching also should be a filter.
3653d74
to
f515488
Compare
Description
It's useful when benchmarking in production mode.
{memory_usage}
replacementChecklist: