Removed bogus argument in frame profiling method
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 1 Dec 2014 18:36:48 +0000 (10:36 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 1 Dec 2014 18:36:48 +0000 (10:36 -0800)
* Caused "Warning: xhprof_frame_end() expects exactly 0 parameters, 1 given in includes/libs/ScopedCallback.php on line 70"

Change-Id: I1ab5a973a185738cae97de4cfdc3cca78598d35e

includes/profiler/ProfilerXhprof.php

index 00209e2..88196db 100644 (file)
@@ -131,7 +131,7 @@ class ProfilerXhprof extends Profiler {
                if ( $exists ) {
                        xhprof_frame_begin( $section );
                        return new ScopedCallback( function() use ( $section ) {
-                               xhprof_frame_end( $section );
+                               xhprof_frame_end();
                        } );
                }