aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/compile_skia.py
diff options
context:
space:
mode:
authorGravatar borenet <borenet@google.com>2016-03-04 10:58:20 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-04 10:58:21 -0800
commitd4f89e4e391d00e1011e3bbafc90743335e40030 (patch)
tree1988202ab3ae4d433616f14278c689a050915afd /infra/bots/compile_skia.py
parente43f7e67b69dcae80b2110a7ebfe62f167c4953f (diff)
Swarming tasks: print start and end time
This will help determine how long each component of the task takes. NOTRY=true BUG=skia:4763 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1769583002 Review URL: https://codereview.chromium.org/1769583002
Diffstat (limited to 'infra/bots/compile_skia.py')
-rw-r--r--infra/bots/compile_skia.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/infra/bots/compile_skia.py b/infra/bots/compile_skia.py
index ca2c7db600..2887461351 100644
--- a/infra/bots/compile_skia.py
+++ b/infra/bots/compile_skia.py
@@ -10,6 +10,7 @@ import argparse
import common
import os
import sys
+import utils
def main():
@@ -17,8 +18,9 @@ def main():
parser.add_argument('--builder_name', required=True)
parser.add_argument('--swarm_out_dir', required=True)
args = parser.parse_args()
- bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir))
- bot.compile_steps()
+ with utils.print_timings():
+ bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir))
+ bot.compile_steps()
if __name__ == '__main__':