summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-23 09:36:24 +0100
committerMagnus Ahltorp <map@kth.se>2015-03-23 16:14:48 +0100
commit510ecc5702ea36395addc733789756ce8075517e (patch)
tree3238cff581e52eb31bf7205896b3083e7540878c /tools
parent26c5e8f248454f62329361a4504c78820e24b649 (diff)
Make timing printouts optional in merge.py
Diffstat (limited to 'tools')
-rwxr-xr-xtools/merge.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/merge.py b/tools/merge.py
index 1b94581..dd8de07 100755
--- a/tools/merge.py
+++ b/tools/merge.py
@@ -26,6 +26,7 @@ parser.add_argument("--signing", metavar="url", help="Base URL for signing serve
parser.add_argument("--own-keyname", metavar="keyname", help="The key name of the merge node", required=True)
parser.add_argument("--own-keyfile", metavar="keyfile", help="The file containing the private key of the merge node", required=True)
parser.add_argument("--nomerge", action='store_true', help="Don't actually do merge")
+parser.add_argument("--timing", action='store_true', help="Print timing information")
args = parser.parse_args()
ctbaseurl = args.baseurl
@@ -244,7 +245,8 @@ check_sth_signature(ctbaseurl, sth)
timing_point(timing, "build sth")
-print timing["deltatimes"]
+if args.timing:
+ print timing["deltatimes"]
print "root hash", base64.b16encode(root_hash)
@@ -280,4 +282,5 @@ for frontendnode in frontendnodes:
print "send sth:", sendsthresult
sys.exit(1)
timing_point(timing, "send sth")
- print timing["deltatimes"]
+ if args.timing:
+ print timing["deltatimes"]