profiling
This commit is contained in:
parent
1c93c62945
commit
ba3e32bc53
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue