profiling
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 26 Nov 2005 05:41:02 +0000 (05:41 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 26 Nov 2005 05:41:02 +0000 (05:41 +0000)
includes/Image.php

index c1ca218..cea096f 100644 (file)
@@ -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.
                        #