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

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

Issue 2840213003: Move blink_perf.xml_http_request benchmark to tools/perf/contrib/ directory (Closed)
Patch Set: Simplify benchmark_finders code Created 3 years, 7 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/benchmark_finders.py ('k') | tools/perf/core/trybot_command.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 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import sys 6 import sys
7 7
8 8
9 def GetChromiumSrcDir(): 9 def GetChromiumSrcDir():
10 return os.path.abspath(os.path.join( 10 return os.path.abspath(os.path.join(
(...skipping 10 matching lines...) Expand all
21 21
22 22
23 def GetPerfStorySetsDir(): 23 def GetPerfStorySetsDir():
24 return os.path.join(GetPerfDir(), 'page_sets') 24 return os.path.join(GetPerfDir(), 'page_sets')
25 25
26 26
27 def GetPerfBenchmarksDir(): 27 def GetPerfBenchmarksDir():
28 return os.path.join(GetPerfDir(), 'benchmarks') 28 return os.path.join(GetPerfDir(), 'benchmarks')
29 29
30 30
31 def GetPerfContribDir():
32 return os.path.join(GetPerfDir(), 'contrib')
33
34
31 def AddTelemetryToPath(): 35 def AddTelemetryToPath():
32 telemetry_path = GetTelemetryDir() 36 telemetry_path = GetTelemetryDir()
33 if telemetry_path not in sys.path: 37 if telemetry_path not in sys.path:
34 sys.path.insert(1, telemetry_path) 38 sys.path.insert(1, telemetry_path)
35 39
36 40
37 def AddPyUtilsToPath(): 41 def AddPyUtilsToPath():
38 py_utils_dir = os.path.join( 42 py_utils_dir = os.path.join(
39 GetChromiumSrcDir(), 'third_party', 'catapult', 'common', 'py_utils') 43 GetChromiumSrcDir(), 'third_party', 'catapult', 'common', 'py_utils')
40 if py_utils_dir not in sys.path: 44 if py_utils_dir not in sys.path:
41 sys.path.insert(1, py_utils_dir) 45 sys.path.insert(1, py_utils_dir)
OLDNEW
« no previous file with comments | « tools/perf/core/benchmark_finders.py ('k') | tools/perf/core/trybot_command.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698