profiler: Support tideways for PHP7 profiling
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 4 Dec 2016 03:31:37 +0000 (19:31 -0800)
committerTim Starling <tstarling@wikimedia.org>
Tue, 6 Dec 2016 23:38:19 +0000 (23:38 +0000)
commitde53d90568038304b3a245bfc737c830e4e30c48
tree4f75220b44a2b4270f9572ccb8ba0febe5a0f550
parent127c0072c4d29902fbf2dcfd63464042462270ed
profiler: Support tideways for PHP7 profiling

xhprof does not support PHP7, and it doesn't seem like upstream will be
working on that any time soon.

Tideways is a profiler that is basically a drop-in replacement for
xhprof with functions renamed. So Xhprof::enable() and Xhprof::disable()
will now try to use tideways if that is installed and xhprof is not.

Bug: T152186
Change-Id: I0d7d2de56ac638ca2851c662f527049bd620c0e9
includes/libs/Xhprof.php
includes/profiler/ProfilerXhprof.php