lysice/laravel-xhprof

Library for profiling queries in Laravel with xhprof

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lysice/laravel-xhprof

dev-master 2023-01-14 07:11 UTC

This package is auto-updated.

Last update: 2025-10-14 13:21:08 UTC


README

Library for profiling queries in Laravel with xhprof

Install:

composer require lysice/laravel-xhprof

Settings

Create file xhprof.php in config path with content:

<?php

return [
    'enabled' => true, 
    'global_middleware' => true,
    'flags' => XHPROF_FLAGS_CPU|XHPROF_FLAGS_MEMORY|XHPROF_FLAGS_NO_BUILTINS
];

Params description

Name Default Description
enabled true Enabling or disabling the profiler
global_middleware true The inclusion the global middleware for profiling at any route
flags XHPROF_FLAGS_CPU and XHPROF_FLAGS_MEMORY and XHPROF_FLAGS_NO_BUILTINS parameter of xhprof_enable.