Made ProfilerStub return null instead of a dummy ScopedCallback
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Mar 2015 03:50:41 +0000 (20:50 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 26 Mar 2015 03:50:41 +0000 (20:50 -0700)
commit5012ac6c6a7bea9971b2e44eca73ece2dab748bc
tree72bf5a05f1bc1e062f52790debedd2399e5b102e
parent782e81b31c0b04f8753812ccfc56d0a7187948ec
Made ProfilerStub return null instead of a dummy ScopedCallback

* This can happen well over 10k times per request due to the message
  hooks. Avoiding the object construction seems prudent.

Change-Id: I45ff7b8c10851f15a25cbea9a2df3669ec21dbd3
includes/profiler/Profiler.php
includes/profiler/ProfilerStub.php