* This can happen well over 10k times per request due to the message
hooks. Avoiding the object construction seems prudent.
Change-Id: I45ff7b8c10851f15a25cbea9a2df3669ec21dbd3
/**
* @param ScopedCallback $section
*/
- public function scopedProfileOut( ScopedCallback &$section ) {
+ public function scopedProfileOut( ScopedCallback &$section = null ) {
$section = null;
}
*/
class ProfilerStub extends Profiler {
public function scopedProfileIn( $section ) {
- return new ScopedCallback( null ); // no-op
+ return null; // no-op
}
public function getFunctionStats() {