| OLD | NEW | 
|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python | 
| 2 | 2 | 
| 3 # Copyright 2016 Google Inc. | 3 # Copyright 2016 Google Inc. | 
| 4 # | 4 # | 
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be | 
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. | 
| 7 | 7 | 
| 8 from __future__ import print_function | 8 from __future__ import print_function | 
| 9 from _adb import Adb | 9 from _adb import Adb | 
| 10 from _benchresult import BenchResult | 10 from _benchresult import BenchResult | 
| 11 from _hardware import HardwareException, Hardware | 11 from _hardware import HardwareException, Hardware | 
| 12 from argparse import ArgumentParser | 12 from argparse import ArgumentParser | 
| 13 from queue import Queue | 13 from multiprocessing import Queue | 
| 14 from threading import Thread, Timer | 14 from threading import Thread, Timer | 
| 15 import collections | 15 import collections | 
| 16 import glob | 16 import glob | 
| 17 import math | 17 import math | 
| 18 import re | 18 import re | 
| 19 import subprocess | 19 import subprocess | 
| 20 import sys | 20 import sys | 
| 21 import time | 21 import time | 
| 22 | 22 | 
| 23 __argparse = ArgumentParser(description=''' | 23 __argparse = ArgumentParser(description=''' | 
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 256   with hardware: | 256   with hardware: | 
| 257     if hardware.kick_in_time: | 257     if hardware.kick_in_time: | 
| 258       print("sleeping %i seconds to allow hardware settings to kick in..." % | 258       print("sleeping %i seconds to allow hardware settings to kick in..." % | 
| 259             hardware.kick_in_time, file=sys.stderr) | 259             hardware.kick_in_time, file=sys.stderr) | 
| 260       time.sleep(hardware.kick_in_time) | 260       time.sleep(hardware.kick_in_time) | 
| 261     run_benchmarks(configs, skps, hardware) | 261     run_benchmarks(configs, skps, hardware) | 
| 262 | 262 | 
| 263 | 263 | 
| 264 if __name__ == '__main__': | 264 if __name__ == '__main__': | 
| 265   main() | 265   main() | 
| OLD | NEW | 
|---|