From 73099839bdaf4d72d6c19ad6a1a785bb818d21c0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 15 May 2013 17:44:45 +0200 Subject: [PATCH] Added performance log for package installation --- .../system/package/PackageInstallationDispatcher.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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': -- 2.20.1