From: Tim Starling Date: Sat, 26 Nov 2005 05:41:02 +0000 (+0000) Subject: profiling X-Git-Tag: 1.6.0~1128 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=ba3e32bc532500b0d19286e89b0b63da82d1aa52;p=lhc%2Fweb%2Fwiklou.git profiling --- diff --git a/includes/Image.php b/includes/Image.php index c1ca2187d6..cea096f62b 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1035,8 +1035,10 @@ class Image wfEscapeShellArg( $this->imagePath ), wfEscapeShellArg( $thumbPath ) ), $wgSVGConverters[$wgSVGConverter] ); + wfProfileIn( 'rsvg' ); wfDebug( "reallyRenderThumb SVG: $cmd\n" ); $conv = wfShellExec( $cmd ); + wfProfileOut( 'rsvg' ); } else { $conv = false; } @@ -1049,7 +1051,9 @@ class Image wfEscapeShellArg($this->imagePath) . " -resize {$width}x{$height} " . wfEscapeShellArg($thumbPath); wfDebug("reallyRenderThumb: running ImageMagick: $cmd\n"); + wfProfileIn( 'convert' ); $conv = wfShellExec( $cmd ); + wfProfileOut( 'convert' ); } else { # Use PHP's builtin GD library functions. #