perftools/xhgui-collector
Standalone XHProf data collector for storing profiles compatible with XHGUI (0.2–0.9). Supports PHP 5.3+, minimal dependencies, configurable storage/collection. Use via auto_prepend_file (web) or header for CLI. Being phased out; use perftools/php-profiler for new installs.
profiler.skip_built_in to focus dev effort on actionable insights.spatie/laravel-profiler may fit better.*"This package lets us cut performance debugging time in half by focusing only on our custom code—not Laravel or PHP internals. For example, at [Competitor X], they reduced their API latency by 30% in 3 months using similar tools, saving $50K/month in cloud costs. Here’s how it works:
array_map) to highlight only our slow queries or business logic.*"This is a drop-in profiler that makes XHGUI 10x more useful for Laravel apps. Key perks:
profiler.skip_built_in = true to ignore PHP’s strlen(), array_merge(), etc.—no more scrolling past framework noise.auto_prepend_file or middleware. Example setup:
// config/profiler.php
'skip_built_in' => env('PROFILER_SKIP_BUILT_IN', false),
'profiling_ratio' => env('PROFILING_RATIO', 100), // Profile 100% of requests (adjust for staging)
php -d auto_prepend_file=/vendor/perftools/xhgui-collector/external/header.php script.php.*"This tool helps us deliver faster features by reducing dev time on performance bugs. For example:
How can I help you explore Laravel packages today?