aeatech/cli-snapshot-profiler-event-subscriber
Symfony/EventDispatcher). This makes integration feasible but requires careful mapping of Laravel’s event ecosystem to the subscriber’s expectations.php artisan queue:work, migrations, or custom scripts), this package could be valuable. For HTTP requests, alternatives like Laravel Debugbar, Blackfire, or Symfony Profiler would be more appropriate.console.command, console.terminate). Laravel’s Artisan dispatches these natively, but custom CLI scripts may need explicit event triggering.Illuminate\Console\Events (e.g., CommandStarting, CommandCompleted) could be bridged to Symfony’s events with minimal effort.dd(), dump()).symfony/event-dispatcher) that Laravel already manages, risking version conflicts.spatie/laravel-profiler) that offer broader coverage?route:clear) from profiling?EventDispatcher (Laravel includes this via illuminate/support).queue:work, migrate, custom scripts).AppServiceProvider’s boot() method:
public function boot()
{
$this->app->make('event.dispatcher')->addSubscriber(new \AeaTech\CliSnapshotProfilerEventSubscriber());
}
console.command) around profiling sections.config/profiler.php) to enable/disable per environment.microtime() and memory_get_usage() for critical CLI paths.queue:work) to validate the package’s value.aeatech/cli-snapshot-profiler-event-subscriber package and Symfony components.composer.json to avoid breaking changes.queue:work --sleep=0).storage:link) could OOM. Set memory limits or exclude such commands.command event logging).How can I help you explore Laravel packages today?