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

Side by Side Diff: tools/perf/core/perf_data_generator.py

Issue 2824053002: [tools/perf] Remove default values of benchmark_dirs and top_level_dir in chromium_config module (R… (Closed)
Patch Set: Fix referencess Created 3 years, 8 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/perf/core/path_util.py ('k') | tools/perf/record_android_profile.py » ('j') | 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 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 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 """Script to generate chromium.perf.json and chromium.perf.fyi.json in 6 """Script to generate chromium.perf.json and chromium.perf.fyi.json in
7 the src/testing/buildbot directory and benchmark.csv in the src/tools/perf 7 the src/testing/buildbot directory and benchmark.csv in the src/tools/perf
8 directory. Maintaining these files by hand is too unwieldy. 8 directory. Maintaining these files by hand is too unwieldy.
9 """ 9 """
10 import argparse 10 import argparse
11 import collections 11 import collections
12 import csv 12 import csv
13 import json 13 import json
14 import os 14 import os
15 import re 15 import re
16 import sys 16 import sys
17 import sets 17 import sets
18 18
19 from chrome_telemetry_build import chromium_config 19 from core import path_util
20 path_util.AddTelemetryToPath()
20 21
21 sys.path.append(chromium_config.GetTelemetryDir())
22 from telemetry import benchmark as benchmark_module 22 from telemetry import benchmark as benchmark_module
23 from telemetry import decorators 23 from telemetry import decorators
24 from telemetry.core import discover 24 from telemetry.core import discover
25 from telemetry.util import bot_utils 25 from telemetry.util import bot_utils
26 26
27 27
28 SCRIPT_TESTS = [ 28 SCRIPT_TESTS = [
29 { 29 {
30 'args': [ 30 'args': [
31 'gpu_perftests', 31 'gpu_perftests',
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 return 0 975 return 0
976 else: 976 else:
977 print ('The perf JSON config files are not up-to-date. Please run %s ' 977 print ('The perf JSON config files are not up-to-date. Please run %s '
978 'without --validate-only flag to update the perf JSON ' 978 'without --validate-only flag to update the perf JSON '
979 'configs and benchmark.csv.') % sys.argv[0] 979 'configs and benchmark.csv.') % sys.argv[0]
980 return 1 980 return 1
981 else: 981 else:
982 update_all_tests([fyi_waterfall, waterfall]) 982 update_all_tests([fyi_waterfall, waterfall])
983 update_benchmark_csv() 983 update_benchmark_csv()
984 return 0 984 return 0
OLDNEW
« no previous file with comments | « tools/perf/core/path_util.py ('k') | tools/perf/record_android_profile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698