Enable profiling via xhprof
authorBryan Davis <bd808@wikimedia.org>
Mon, 27 Oct 2014 04:27:59 +0000 (22:27 -0600)
committerBryan Davis <bd808@wikimedia.org>
Sat, 8 Nov 2014 18:47:25 +0000 (11:47 -0700)
commit46c47e11bc27e8acaf7ea3e5972989e2d0801370
treeb39939e1eb9d037ed7c4110af2cba30ac65da396
parentf4f5f41194ec3e417755579b392a4c09faf3db53
Enable profiling via xhprof

Add a helper class to assist in collecting profiling information using
XHProf <https://github.com/phacility/xhprof> and a Profiler
implementation to hook it into the existing MediaWiki profiling system.

The Profiler includes support for generating tabular reports similar to
the traditional output of ProfilerSimpleText and ProfilerSimpleTrace or
sending data to a udpprofile daemon as supported by ProfilerSimpleUDP.
It also produces data compatible with the debugging toolbar.

Bug: T759
Change-Id: I16a75cb7636cb5dcef3830d738b2dcd2047d0aaa
includes/AutoLoader.php
includes/libs/RunningStat.php
includes/libs/Xhprof.php [new file with mode: 0644]
includes/profiler/Profiler.php
includes/profiler/ProfilerXhprof.php [new file with mode: 0644]
tests/phpunit/includes/libs/XhprofTest.php [new file with mode: 0644]