phico / profiler
Lightweight app timer and profiling middleware for Phico
dev-main
2024-09-04 10:38 UTC
Requires
- php: ^8.0
- phico/phico: dev-main
- phico/support: dev-main
Requires (Dev)
- pestphp/pest: ^2.34
- phpstan/phpstan: *
This package is auto-updated.
Last update: 2024-11-04 11:12:04 UTC
README
Lightweight app timer and profiling middleware for Phico
Installation
Using composer
composer require phico/profiler
Usage
Add the middleware to your application
// /app/middleware.php $app->use[ ... new \Phico\Profiler\ProfilerMiddleware, ... ];
Start a timer
$timer->start('account-action', 'You may add a description');
Stop a timer
$timer->stop('account-action');
Check the response headers for the details
Issues
Profiler is considered complete, however if you discover any bugs or issues in it's behaviour or performance please create an issue, and if you are able a pull request with a fix.