aeatech/cli-snapshot-profiler-xhprof-bundle
Symfony bundle for profiling CLI commands with xhprof and exporting snapshots to XHGui. Supports PHP 8.2+, production-safe profiling toggles, app version tagging, xhprof flags, and flexible command/event matching to profile all or selected commands.
is_profiling_enabled) without disrupting workflows.dev and prod, aligning with CI/CD pipelines (e.g., profile in staging before enabling in production).ext-xhprof (requires extension installation).For Executives: "This package lets us profile CLI applications in production—like migrations, batch jobs, or APIs—without disrupting workflows. By integrating XHProf (a lightweight, battle-tested profiler), we can identify and fix performance bottlenecks that impact reliability, cost, and user experience. For example, if our nightly data sync takes 2 hours instead of 1, we can pinpoint the slow queries or loops. It’s a low-risk, high-reward tool for optimizing our most critical backend processes, with minimal dev overhead."
For Engineering: *"This bundle automates CLI profiling for Symfony/Laravel apps using XHProf, giving us:
prod or via env vars).ext-xhprof (add to Docker/host) and XHGUI setup, but pays off for long-running or flaky CLI tasks. Ideal for debugging migrations, queues, or scheduled jobs."*For DevOps/SRE: *"This solves the ‘black box’ problem for CLI performance in production. Instead of guessing why a job is slow, we can:
How can I help you explore Laravel packages today?