X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerXhprof.php;h=09191ee51d99c14f71e8e0dcb5a861c44fc0bed4;hb=5049af1048c77b1ea6ab3193688d23a48ddf8df0;hp=8fc0b778da82b7ba2ed4b281b1bdbf8944ed56e6;hpb=1dd2e07276e1deaf431ddb01c92111038f9e2cd6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/ProfilerXhprof.php b/includes/profiler/ProfilerXhprof.php index 8fc0b778da..09191ee51d 100644 --- a/includes/profiler/ProfilerXhprof.php +++ b/includes/profiler/ProfilerXhprof.php @@ -43,12 +43,16 @@ * ($wgProfiler['exclude']) containing an array of function names. * Shell-style patterns are also accepted. * - * @author Bryan Davis - * @copyright © 2014 Bryan Davis and Wikimedia Foundation. + * It is also possible to use the Tideways PHP extension, which is mostly + * a drop-in replacement for Xhprof. Just change the XHPROF_FLAGS_* constants + * to TIDEWAYS_FLAGS_*. + * + * @copyright © 2014 Wikimedia Foundation and contributors * @ingroup Profiler * @see Xhprof * @see https://php.net/xhprof * @see https://github.com/facebook/hhvm/blob/master/hphp/doc/profiling.md + * @see https://github.com/tideways/php-profiler-extension */ class ProfilerXhprof extends Profiler { /** @@ -196,7 +200,7 @@ class ProfilerXhprof extends Profiler { */ protected function getFunctionReport() { $data = $this->getFunctionStats(); - usort( $data, function( $a, $b ) { + usort( $data, function ( $a, $b ) { if ( $a['real'] === $b['real'] ) { return 0; }