From 2926b29da3038cc4b2b7da7e4c83d6429bbf05a0 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 31 Jan 2013 15:36:29 +0100 Subject: [PATCH] Log profiling info from maintenance scripts. Previously, maintenance scripts did not log profiling info. Change-Id: Ib63dd54b815cca774cd764f28505f9dbdfd02cfc --- maintenance/doMaintenance.php | 3 +++ maintenance/fileOpPerfTest.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php index 2bb2a0f447..c6768bdf18 100644 --- a/maintenance/doMaintenance.php +++ b/maintenance/doMaintenance.php @@ -111,6 +111,9 @@ try { // Potentially debug globals $maintenance->globals(); + + // log profiling info + wfLogProfilingData(); } catch ( MWException $mwe ) { echo( $mwe->getText() ); exit( 1 ); diff --git a/maintenance/fileOpPerfTest.php b/maintenance/fileOpPerfTest.php index d98cfe3f78..4cb5e10a84 100644 --- a/maintenance/fileOpPerfTest.php +++ b/maintenance/fileOpPerfTest.php @@ -55,7 +55,8 @@ class TestFileOpPerformance extends Maintenance { $profiler = Profiler::instance(); $profiler->setTemplated( true ); - $profiler->logData(); // prints + + //NOTE: as of MW1.21, $profiler->logData() is called implicitly by doMaintenance.php. } protected function doPerfTest( FileBackend $backend ) { -- 2.20.1