This commit is contained in:
Kovid Goyal 2014-07-12 16:45:26 +05:30
parent fd06b97d9d
commit 12882d2a99
2 changed files with 4 additions and 1 deletions

View File

@ -157,9 +157,12 @@ class VMInstaller(Command):
def run(self, opts): def run(self, opts):
subprocess.call(['chmod', '-R', '+r', 'recipes']) subprocess.call(['chmod', '-R', '+r', 'recipes'])
start_time = time.time()
self.start_vm() self.start_vm()
startup_time = time.time() - start_time
start_time = time.time() start_time = time.time()
self.run_vm_builder() self.run_vm_builder()
print ('Startup completed in %d seconds' % round(startup_time))
print ('Build completed in %d seconds' % round(time.time() - start_time)) print ('Build completed in %d seconds' % round(time.time() - start_time))
if not opts.dont_shutdown: if not opts.dont_shutdown:
print ('Shutting down', self.VM_NAME) print ('Shutting down', self.VM_NAME)

View File

@ -282,7 +282,7 @@ class LinuxFreeze(Command):
os.rename(dist, ans) os.rename(dist, ans)
else: else:
start_time = time.time() 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)) self.info('Compressed in %d seconds' % round(time.time() - start_time))
os.rename(dist + '.xz', ans) os.rename(dist + '.xz', ans)
self.info('Archive %s created: %.2f MB'%( self.info('Archive %s created: %.2f MB'%(