Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: infra/bots/compile_skia.py

Issue 1769583002: Swarming tasks: print start and end time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix unused import Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | infra/bots/perf_skia.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/compile_skia.py
diff --git a/infra/bots/compile_skia.py b/infra/bots/compile_skia.py
index ca2c7db600b38436128289f0f10ec5533ba127eb..28874613512190600e6531d3922f4562fd0bd53c 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__':
« no previous file with comments | « no previous file | infra/bots/perf_skia.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698