Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Web Snapshot Profiler Xhprof Bundle Laravel Package

aeatech/web-snapshot-profiler-xhprof-bundle

Symfony bundle for production-friendly web profiling with XHProf and XHGui. Capture snapshot profiles per request, control sampling via route/header/request param matchers, and configure flags for memory/internal function data. Requires PHP 8.2+ and ext-xhprof.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Performance Optimization Roadmap: Justifies investment in production-grade profiling for high-traffic or latency-sensitive applications (e.g., e-commerce, SaaS platforms). Enables data-driven decisions to reduce TTFB, database queries, or external API calls.
  • Build vs. Buy: Buy for teams already using Symfony/Laravel with PHP 8.2+ and needing low-overhead, production-safe profiling without reinventing the wheel. Avoids maintenance costs of custom solutions.
  • Observability Stack Expansion: Complements existing tools (e.g., Blackfire, New Relic) by adding XHProf-specific insights (e.g., function-level granularity, memory usage) for PHP-heavy workloads.
  • Use Cases:
    • Debugging intermittent performance regressions in production.
    • Validating optimizations post-deployment (e.g., after caching layers or query tuning).
    • A/B testing performance between code branches or infrastructure changes.
    • Compliance/audit trails: Correlate performance snapshots with deployments (app_version tagging).

When to Consider This Package

  • Adopt if:
    • Your stack is Symfony/Laravel + PHP 8.2+ with ext-xhprof already enabled (or willing to add it).
    • You need production-safe profiling (unlike Xdebug, which is dev-only).
    • Your team lacks budget for Blackfire or Tideways but needs function-level profiling.
    • You’re profiling high-cardinality endpoints (e.g., API routes) where sampling tools (e.g., APM agents) miss granularity.
  • Look elsewhere if:
    • You’re on PHP < 8.2 or using non-Symfony frameworks (e.g., pure Laravel).
    • You need distributed tracing (use OpenTelemetry or Jaeger instead).
    • Your primary goal is database profiling (consider p6d or Percona PMM).
    • You require real-user monitoring (RUM) (use tools like Sentry or Datadog APM).
    • Your team prefers GUI-driven tools over CLI/XHGUI (this package is CLI/XHGUI-centric).

How to Pitch It (Stakeholders)

For Executives:

"This package lets us profile production PHP performance without downtime, using XHProf—a battle-tested tool adopted by companies like Facebook. For a fraction of the cost of Blackfire, we get function-level insights to optimize critical paths in our Symfony/Laravel apps. It’s MIT-licensed, production-safe, and integrates seamlessly with our existing stack. Pilot it on our highest-traffic endpoints to validate ROI before scaling."

For Engineering:

*"This is a Symfony bundle that wraps XHProf for production profiling. Key benefits:

  • Zero dev overhead: Enable in bundles.php and configure via YAML.
  • Production-grade: Unlike Xdebug, it won’t break live traffic.
  • XHGUI integration: Visualize flame graphs and call trees via Dockerized XHGUI.
  • Lightweight: Only profiles when enabled (is_profiling_enabled: true), with no runtime penalty when off. Use case: Turn it on for specific user journeys (e.g., checkout flow) or post-deploy checks to catch regressions. Pair with app_version tagging to correlate snapshots with Git commits."*

For DevOps/SRE:

*"Requires:

  • PHP 8.2+ (check php -v).
  • ext-xhprof (install via pecl install xhprof).
  • XHGUI (Dockerized; we can pre-build an image for consistency). Deployment: Add to composer.json, enable in bundles.php, and configure the XHGUI endpoint via env vars. Snapshots auto-save to a directory you control (e.g., /var/log/xhprof)."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle