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

Side by Side Diff: tools/skpbench/skpbench.py

Issue 2354273004: skpbench fixes for linux (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « tools/skpbench/_adb_path.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « tools/skpbench/_adb_path.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698