A Symfony bundle that integrates XHProf profiling into the web debug toolbar and console commands.
XhprofBundle is a Symfony bundle that integrates XHProf, a hierarchical PHP profiler, into Symfony 2 applications. It allows developers to profile web requests and console commands directly from the Symfony web debug toolbar, helping identify performance bottlenecks and optimize code execution.
Symfony 2 developers who need to profile and optimize the performance of their PHP applications, particularly those working in development or testing environments.
Developers choose XhprofBundle for its seamless integration with Symfony's debugging tools, support for both web and console profiling, and flexible configuration options like sampling and XHGui integration, making performance analysis more accessible.
XHProf bundle for Symfony 2
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Integrates XHProf results directly into Symfony's web debug toolbar, allowing developers to access profiling data without leaving their familiar interface, as highlighted in the README's key features.
Supports profiling of Symfony console commands with configurable triggers and exclusions, making it versatile for both web and CLI applications, as described in the configuration section.
Allows setting a sample size probability to profile random requests in production, reducing performance overhead while still gathering insights, with configuration examples provided in the README.
Enables integration with XHGui for advanced visualization and database-backed profiling results, though it requires additional setup like creating custom entities, as detailed in the configuration.
Offers fine-grained control over profiling activation via query parameters, URL patterns, or response headers, allowing developers to target specific requests without profiling everything.
Primarily designed for Symfony 2, with no explicit mention of support for newer Symfony versions, potentially requiring community forks or manual adjustments for modern projects.
Requires separate installation of the XHProf PHP extension, adding setup complexity and potential compatibility issues across different server environments, as noted in the installation steps.
Integrating with XHGui involves creating custom entity classes and configuring database connections, which can be cumbersome and error-prone for developers not familiar with Doctrine.
Only profiles PHP code execution via XHProf, so it won't capture performance bottlenecks in other areas like database queries or frontend rendering without additional tooling.