From 12882d2a995ee784d8af7f8e88728fc980375d66 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Jul 2014 16:45:26 +0530 Subject: [PATCH] ... --- setup/installer/__init__.py | 3 +++ setup/installer/linux/freeze2.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/setup/installer/__init__.py b/setup/installer/__init__.py index 9561e72327..f17aab8493 100644 --- a/setup/installer/__init__.py +++ b/setup/installer/__init__.py @@ -157,9 +157,12 @@ class VMInstaller(Command): def run(self, opts): subprocess.call(['chmod', '-R', '+r', 'recipes']) + start_time = time.time() self.start_vm() + startup_time = time.time() - start_time start_time = time.time() self.run_vm_builder() + print ('Startup completed in %d seconds' % round(startup_time)) print ('Build completed in %d seconds' % round(time.time() - start_time)) if not opts.dont_shutdown: print ('Shutting down', self.VM_NAME) diff --git a/setup/installer/linux/freeze2.py b/setup/installer/linux/freeze2.py index d01fadc2f0..bad17989d1 100644 --- a/setup/installer/linux/freeze2.py +++ b/setup/installer/linux/freeze2.py @@ -282,7 +282,7 @@ class LinuxFreeze(Command): os.rename(dist, ans) else: start_time = time.time() - subprocess.check_call(['xz', '-f', '-9', dist]) + subprocess.check_call(['xz', '--threads=0', '-f', '-9', dist]) self.info('Compressed in %d seconds' % round(time.time() - start_time)) os.rename(dist + '.xz', ans) self.info('Archive %s created: %.2f MB'%(