From ba3e32bc532500b0d19286e89b0b63da82d1aa52 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 26 Nov 2005 05:41:02 +0000 Subject: [PATCH] profiling --- includes/Image.php | 4 ++++ 1 file changed, 4 insertions(+) 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. # -- 2.20.1