From: Platonides Date: Thu, 10 Feb 2011 16:40:59 +0000 (+0000) Subject: Add profiling to DjVuImage::retrieveMetaData X-Git-Tag: 1.31.0-rc.0~32068 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=35fe8b4a8aaab7f3783489bfc23807e804e03cd3;p=lhc%2Fweb%2Fwiklou.git Add profiling to DjVuImage::retrieveMetaData --- diff --git a/includes/DjVuImage.php b/includes/DjVuImage.php index a55017e06e..59f49af68c 100644 --- a/includes/DjVuImage.php +++ b/includes/DjVuImage.php @@ -226,6 +226,8 @@ class DjVuImage { */ function retrieveMetaData() { global $wgDjvuToXML, $wgDjvuDump, $wgDjvuTxt; + wfProfileIn( __METHOD__ ); + if ( isset( $wgDjvuDump ) ) { # djvudump is faster as of version 3.5 # http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583 @@ -272,6 +274,7 @@ EOR; $xml = $xml . $txt. '' ; } } + wfProfileOut( __METHOD__ ); return $xml; }