skia2/infra/bots/compile_skia.py
borenet d4f89e4e39 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
2016-03-04 10:58:21 -08:00

28 lines
587 B
Python

#!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import common
import os
import sys
import utils
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--builder_name', required=True)
parser.add_argument('--swarm_out_dir', required=True)
args = parser.parse_args()
with utils.print_timings():
bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir))
bot.compile_steps()
if __name__ == '__main__':
main()