Profiling is the process of collecting information about which functions are called during program execution, and how long these calls take. It can help identify bottlenecks and inefficiencies in the code. Several options are available for profiling VuFind®.
VuFind® comes with built-in support for the XHProf family of profilers. Tideways XHProf Extension is a later evolution of XHProf, and it is supported in VuFind® 4.0 and later (and recommended for those versions, since the original does not support recent PHP releases). VuFind® 6.1 and later only support the Tideways extension. VuFind® 8.0 restores support for XHProf while also supporting Tideways, due to the revival of that project.
To use one of these profilers:
If these steps have been completed successfully, you will see a link to profiler results at the bottom of every page in VuFind®. Note that prior to VuFind® 8.0, the output of this profile link will cause JSON or XML-based AJAX requests to fail since it will make those responses invalid. This should not matter for the purposes of testing individual pages. Starting with VuFind® 8.0, non-HTML pages will provide the profiling link as an HTTP header instead of an inline link.
A slightly more advanced option is to install the XDebug extension, which allows you to trigger profile data collection in a variety of configurable ways and then analyze the output data using a graphical tool in the CacheGrind family. See the XDebug documentation for more details. No direct changes to VuFind® should be necessary to use XDebug profiling; all configuration can take place in your PHP settings.