summaryrefslogtreecommitdiff
path: root/ybd.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-04-11 08:29:08 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-04-11 08:29:08 +0000
commitb1305dc6233fa4c32a296b1571befcdcbf19c553 (patch)
treeab4bbd5793082d8be6e4e33cc184a3a4140ca854 /ybd.py
parent60e50a5f619629a93c22b3233a41708f3392e8e0 (diff)
downloadybd-b1305dc6233fa4c32a296b1571befcdcbf19c553.tar.gz
Add timer for Definitions processing
Diffstat (limited to 'ybd.py')
-rwxr-xr-xybd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ybd.py b/ybd.py
index feeb684..61a737c 100755
--- a/ybd.py
+++ b/ybd.py
@@ -31,7 +31,9 @@ target = os.path.splitext(os.path.basename(sys.argv[1]))[0]
arch = sys.argv[2]
with app.setup(target, arch):
with app.timer('TOTAL', 'YBD starts'):
+ with app.timer('DEFINITIONS', 'Parsing'):
+ defs = Definitions()
with app.timer('CACHE-KEYS', 'Calculating'):
cache.get_cache(target)
- Definitions().save_trees()
+ defs.save_trees()
assemble(target)