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

Unified Diff: tools/perf/core/benchmark_finders.py

Issue 2840213003: Move blink_perf.xml_http_request benchmark to tools/perf/contrib/ directory (Closed)
Patch Set: Make sure that trybot include contrib dir 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/core/benchmark_finders.py
diff --git a/tools/perf/core/benchmark_finders.py b/tools/perf/core/benchmark_finders.py
index 6705b16cb537e547f02baec107b2329be9ad9917..cd5f65b8369ea4193424b290a4970e11e518fa97 100644
--- a/tools/perf/core/benchmark_finders.py
+++ b/tools/perf/core/benchmark_finders.py
@@ -45,7 +45,15 @@ def GetBenchmarkNamesForFile(top_level_dir, benchmark_file_dir):
def GetAllPerfBenchmarks():
benchmarks_dir = path_util.GetPerfBenchmarksDir()
- top_level_dir = os.path.join(benchmarks_dir, '..')
+ top_level_dir = os.path.join(path_util.GetPerfDir())
shatch 2017/04/26 14:37:30 nit: is this join necessary now
nednguyen 2017/04/26 14:42:51 Oh right, silly me :P
+ return discover.DiscoverClasses(
+ benchmarks_dir, top_level_dir, benchmark_module.Benchmark,
+ index_by_class_name=True).values()
+
+
+def GetAllContribBenchmarks():
+ benchmarks_dir = path_util.GetPerfContribDir()
+ top_level_dir = os.path.join(path_util.GetPerfDir())
return discover.DiscoverClasses(
benchmarks_dir, top_level_dir, benchmark_module.Benchmark,
index_by_class_name=True).values()
« no previous file with comments | « tools/perf/contrib/blink_perf_xml_http_request/blink_perf_xml_http_request.py ('k') | tools/perf/core/path_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698