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