bavix/laravel-prof

This package is abandoned and no longer maintained. No replacement package was suggested.

Code profiling made easy for Laravel

2.0.0 2020-09-24 07:45 UTC

This package is auto-updated.

Last update: 2024-02-14 21:07:39 UTC


README

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

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.

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

Supported by

Supported by JetBrains