Code profiling made easy for Laravel

php, code, profiler, profiling, laravel, profile, logs, clickhouse, grafana, redash, redis


Screenshot from 2020-07-12 11-56-41

Laravel Prof

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

Package Rank Latest Stable Version Latest Unstable Version License composer.lock

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: Latest Stable Version
  • Laravel Version: 6.x, 7.x, 8.x
  • PHP Version: 7.2+
  • Composer: composer require bavix/laravel-prof


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.

Screenshot from 2020-07-11 14-45-55

Supported by

Supported by JetBrains