Switched hook profiling to use scopedProfileIn
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 4 Dec 2014 00:51:22 +0000 (16:51 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 4 Dec 2014 19:32:38 +0000 (19:32 +0000)
commitdcd639f9f90cb0665254e17de2fcc89f25dbb957
tree7c7af8dd6e9fd2fef41b39e0258c4427a42a9667
parent4f5f9776ad3e793a5ac991adf2c0ffcf04001db6
Switched hook profiling to use scopedProfileIn

* Also made scopedProfileOut handle the case where the callback
  was null (e.g. when there are no frame methods for xhprof).

Change-Id: Ife242bda8e046990d0d8ac27d628975b7b4a14d7
includes/Hooks.php
includes/profiler/ProfilerStub.php
includes/profiler/ProfilerXhprof.php