From 35fe8b4a8aaab7f3783489bfc23807e804e03cd3 Mon Sep 17 00:00:00 2001 From: Platonides Date: Thu, 10 Feb 2011 16:40:59 +0000 Subject: [PATCH] Add profiling to DjVuImage::retrieveMetaData --- includes/DjVuImage.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1