Physikerwelt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/261628

Change subject: Remove profiling code
......................................................................

Remove profiling code

* Do not use log->warn for profiling

Change-Id: I439a3759df438a50700fa3c61c2ffcc088128803
---
M MathObject.php
1 file changed, 0 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch 
refs/changes/28/261628/1

diff --git a/MathObject.php b/MathObject.php
index fd8d5cd..7813115 100644
--- a/MathObject.php
+++ b/MathObject.php
@@ -77,10 +77,7 @@
                $res = $dbr->selectRow(
                        array( 'mathindex' ), self::dbIndexFieldsArray(), 
'mathindex_revision_id = ' . $pid
                        . ' AND mathindex_anchor= "' . $eid . '"' );
-               $start = microtime( true );
                $o = self::constructformpagerow( $res );
-               LoggerFactory::getInstance( 'MathSearch' )->warning( 'Fetched 
in ' . microtime( true ) -
-                       $start );
                return $o;
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/261628
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I439a3759df438a50700fa3c61c2ffcc088128803
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to