laravel-debugbar icon indicating copy to clipboard operation
laravel-debugbar copied to clipboard

Feature request: configurable threshold for indicator warnings

Open peterjaap opened this issue 5 years ago • 2 comments

While browsing on my app, I usually glance at the debugbar to see if my memory usage and request duration is within my normal limits.

It would be great to have a configuration setting in config/debugbar.php that sets a memory_usage_warning_threshold (in kilobytes) and a request_duration_warning_threshold (in milliseconds).

If the memory usage/request duration then exeeds this threshold, the memory usage/request duration block in the debugbar lights up, something like this;

image

This way, I can quickly see something's wrong without having actually having to look at the values themselves.

peterjaap avatar Jun 10 '20 08:06 peterjaap

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.

stale[bot] avatar Aug 09 '20 08:08 stale[bot]

I agree this would be nice, but I don't see any facility in the php-debugbar side of things to specify custom HTML or CSS classes for an indicator.

miken32 avatar Oct 06 '20 16:10 miken32