tourze/symfony-command-profile-bundle
A Symfony bundle that profiles console commands, hooking into console events to measure execution time and memory usage and help you spot slow or resource-heavy commands in your application.
artisan, cron-driven commands, and queue-adjacent workers usually do not. Command-level profiling turns "the nightly job feels slow" into a ranked list, which is a roadmap input.Adopt for evaluation when:
Look elsewhere when:
php artisan integration docs, config publishing, facade — none of which a Symfony bundle provides out of the box.To executives: We spend most of our monitoring budget on the web tier; batch and scheduled jobs are effectively unmeasured, which is where slow failures hide and where "why was the nightly run late?" becomes an expensive investigation. This is a small, low-cost Symfony bundle that instruments console commands and gives us per-command timing and memory data. The ask is a short, reversible spike — not a platform commitment — to determine whether it's sufficient or whether we need to fund a proper APM tier for background workloads. Note the package is pre-1.0 and maintained by a single publisher, so we would pin the version and keep it behind an interface.
To engineering: This is a Symfony Console profiling bundle (tourze/symfony-command-profile-bundle), now at 0.1.0. Because Laravel's Artisan is built on Symfony Console, the instrumentation surface is compatible, but there is no Laravel-native integration — expect to write a service provider and config bridge yourself. The 0.1.0 release ships no human-readable changelog, so review the diff before adopting. Success criteria for the spike: (1) commands profiled without touching command code, (2) measurable overhead under an agreed threshold on our heaviest command, (3) data lands somewhere we can query. If any of the three fails, we fall back to a thin custom CommandFinished listener — roughly a day of work — and revisit APM.
How can I help you explore Laravel packages today?