meza
meza copied to clipboard
Add "php-tideways" to apache for PHP profiling
MW recommends enabling PHP "profiling" [1] to benchmark, analyze, and diagnose site performance issues. Before profiling can be enabled, the updated XHProf package "php-tideways" [2] must be installed on the system and enabled in apache. Tideways provides a pre-compiled package for Debian users, but not for Centos or RedHat. As a result, it would be nice if MEZA could do this as part of standard deploy. Once included in MEZA, MEZA server admins could enable profiling to assist SMW developers in performance tuning by inspecting a list of page load method execution times.
[1] https://www.mediawiki.org/wiki/Manual:Profiling [2] https://github.com/tideways/php-xhprof-extension
It would seem this was added a long time ago but has been disabled for some time.
Ref: https://github.com/enterprisemediawiki/meza/blob/master/src/roles/apache-php/tasks/main.yml#L59
It would seem that the Tideways module mentioned above is the solution that was needed when profiling originally disabled per: https://github.com/enterprisemediawiki/meza/blob/master/src/roles/apache-php/templates/php.ini.j2#L899