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

Side by Side Diff: sky/tools/test_perf

Issue 1200993002: Update README.md and HACKING.md and resulting yak shave. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 from skypy.find_tests import find_tests 6 from skypy.find_tests import find_tests
7 from skypy.paths import Paths 7 from skypy.paths import Paths
8 import argparse 8 import argparse
9 import os 9 import os
10 import re 10 import re
11 import requests 11 import requests
12 import skypy.configuration as configuration 12 import skypy.configuration as configuration
13 import skypy.skyserver 13 import skypy.skyserver
14 import subprocess 14 import subprocess
15 15
16 16
17 SUPPORTED_MIME_TYPES = [ 17 SUPPORTED_MIME_TYPES = [
18 'text/html',
19 'text/sky', 18 'text/sky',
20 'text/plain', 19 'application/dart',
21 ] 20 ]
22 HTTP_PORT = 9999 21 HTTP_PORT = 9999
23 URL_ROOT = 'http://localhost:%s/' % HTTP_PORT 22 URL_ROOT = 'http://localhost:%s/' % HTTP_PORT
24 DASHBOARD_URL = 'https://chromeperf.appspot.com/add_point' 23 DASHBOARD_URL = 'https://chromeperf.appspot.com/add_point'
25 BENCHMARKS_DIR = 'benchmarks' 24 BENCHMARKS_DIR = 'benchmarks'
26 25
27 26
28 def values_from_output(output): 27 def values_from_output(output):
29 # Parse out the raw values from the PerfRunner output: 28 # Parse out the raw values from the PerfRunner output:
30 # values 90, 89, 93 ms 29 # values 90, 89, 93 ms
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 try: 121 try:
123 harness.main() 122 harness.main()
124 except (KeyboardInterrupt, SystemExit): 123 except (KeyboardInterrupt, SystemExit):
125 pass 124 pass
126 finally: 125 finally:
127 harness.shutdown() 126 harness.shutdown()
128 127
129 128
130 if __name__ == '__main__': 129 if __name__ == '__main__':
131 main() 130 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698