laracraft-tech/laravel-xhprof
Laravel package to integrate XHProf profiling into your app. Capture and store performance profiles for requests and jobs, view results via a simple UI, and analyze bottlenecks to optimize code and database queries.
/api/payments latency is from external API calls—allocate 30% of this sprint to caching strategies")./auth in feature/sso—block merge until optimized").php -m | grep xhprof).xhprof)."This tool directly impacts our bottom line by helping the team ship faster and maintain high performance—here’s how it delivers ROI:
?profile=1 to any URL) instead of hours of trial-and-error debugging. Example: "Identified and fixed a 600ms bottleneck in the checkout flow in one sprint, reducing cart abandonment by 15%."Ask: "Would you prefer to spend $20K/year on APM tools or invest 1 hour to set up this free, open-source solution that delivers the same insights during development?"
"This package solves three critical pain points for our team:
?profile=1 to any route to get a flame graph of wall time, memory usage, and function calls—no setup beyond a Composer install.Key Benefits:
PaymentService.php accounts for 30% of wall time").Implementation Plan:
/api/orders, /checkout).Ask: "Should we allocate 1 sprint to pilot this and measure the impact on debugging time and release velocity?"
"This is the Swiss Army knife for Laravel performance—here’s how it’ll make your life easier:
?profile=1 to any route and instantly see what’s slowing it down (wall time, memory, function calls).Xhprof::start()/Xhprof::stop() to find hidden bottlenecks.$this->assertLessThan(500, Xhprof::stop()->getWallTime(), "API too slow!");
serialize() called 100x in this loop?").Pro Tip: Use XHPROF_SAMPLE_RATE=5 in production-like environments to reduce overhead while still getting useful data.
Ask: "Want to try profiling your slowest endpoint this sprint? I’ll show you how in 5 minutes."
How can I help you explore Laravel packages today?