bavix / laravel-prof
Code profiling made easy for Laravel
Installs: 665
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 0
Open Issues: 0
pkg:composer/bavix/laravel-prof
Requires
- php: >=7.2
- ext-json: *
- bavix/laravel-entry: ^1.0|^2.0
README
Laravel Prof
Laravel Prof - Code profiling made easy in production.
Mark code snippets using services and see profiling results in grafana, redash
and other analytical systems.
- Vendor: bavix
- Package: Laravel Prof
- Version:
- Laravel Version:
6.x,7.x,8.x - PHP Version: 7.2+
- Composer:
composer require bavix/laravel-prof
Usage
Add profile_logs table to clickhouse...
create table profile_logs ( hostname String, project String, version String, userId Nullable(String), sessionId Nullable(String), requestId String, requestIp String, eventName String, target String, latency Float32, memoryPeak Int32, date Date, created DateTime ) engine = MergeTree(date, (date, project, eventName), 8192);
Run the consumer
./artisan queue:work
Set up grafana / redash and enjoy.
Supported by

