Search code examples
phpcontinuous-integrationphpundercontrolprofilingxhprof

Building XHProf into CI (phpundercontrol) non-intrusively


I would love to build XHProf output and metrics into phpUnderControl. After doing a good amount of research, it seems the only path to XHProf is to actually change code to include and execute it. Does XHProf have any modes similar to xdebug's profiler enable trigger where it can profile without modifications? Has anyone produced an automation tool for profiling with a CI server like phpUnderControl or Jenkins?


Solution

  • Could you use PHP's auto_prepend_file, and auto_append_file in a custom ini to enable and disable the details without modifying the files themselves? I suggest something like that for the GUI: https://github.com/preinheimer/xhprof/blob/master/INSTALL