mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Output the time a build set takes.
This commit is contained in:
parent
4f5321fa65
commit
251a42d399
@ -22,6 +22,7 @@
|
|||||||
# set lists the various tools. These are specific tool configurations.
|
# set lists the various tools. These are specific tool configurations.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import datetime
|
||||||
import distutils.dir_util
|
import distutils.dir_util
|
||||||
import glob
|
import glob
|
||||||
import operator
|
import operator
|
||||||
@ -218,11 +219,17 @@ class buildset:
|
|||||||
_trace(self.opts, '_bset:%s: configs: %s' % (self.bset, ','.join(configs)))
|
_trace(self.opts, '_bset:%s: configs: %s' % (self.bset, ','.join(configs)))
|
||||||
|
|
||||||
current_path = os.environ['PATH']
|
current_path = os.environ['PATH']
|
||||||
|
|
||||||
|
start = datetime.datetime.now()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
builds = []
|
builds = []
|
||||||
for s in range(0, len(configs)):
|
for s in range(0, len(configs)):
|
||||||
if configs[s].endswith('.bset'):
|
if configs[s].endswith('.bset'):
|
||||||
bs = buildset(configs[s], _configs = self.configs, _defaults = self.defaults, opts = self.opts)
|
bs = buildset(configs[s],
|
||||||
|
_configs = self.configs,
|
||||||
|
_defaults = self.defaults,
|
||||||
|
opts = self.opts)
|
||||||
bs.build()
|
bs.build()
|
||||||
del bs
|
del bs
|
||||||
elif configs[s].endswith('.cfg'):
|
elif configs[s].endswith('.cfg'):
|
||||||
@ -245,8 +252,13 @@ class buildset:
|
|||||||
except:
|
except:
|
||||||
os.environ['PATH'] = current_path
|
os.environ['PATH'] = current_path
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
end = datetime.datetime.now()
|
||||||
|
|
||||||
os.environ['PATH'] = current_path
|
os.environ['PATH'] = current_path
|
||||||
|
|
||||||
|
_notice(self.opts, 'Build Set: Time %s' % (str(end - start)))
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
import sys
|
import sys
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user