From: Alexander Ebert Date: Wed, 15 May 2013 15:44:45 +0000 (+0200) Subject: Added performance log for package installation X-Git-Tag: 2.0.0_Beta_1~181 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73099839bdaf4d72d6c19ad6a1a785bb818d21c0;p=GitHub%2FWoltLab%2FWCF.git Added performance log for package installation --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 532c23453f..05b801f4ad 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -118,11 +118,15 @@ class PackageInstallationDispatcher { switch ($data['nodeType']) { case 'package': + file_put_contents(WCF_DIR.'__installPerformance.log', "\n\nInstalling ".$nodeData['package']."\n", FILE_APPEND); $step = $this->installPackage($nodeData); break; case 'pip': + $start = microtime(true); $step = $this->executePIP($nodeData); + $end = round(microtime(true) - $start, 4); + file_put_contents(WCF_DIR.'__installPerformance.log', "Executing PIP ".$nodeData['pip']."... {$end}\n", FILE_APPEND); break; case 'optionalPackages':