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

Unified Diff: tools/perf/run_benchmark

Issue 274773002: [telemetry] Prototype for specifying page sets using Python imports and Telemetry discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/profile_creators/theme_profile_creator.py ('k') | tools/perf/run_measurement » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/run_benchmark
diff --git a/tools/perf/run_benchmark b/tools/perf/run_benchmark
index 3ed33afaa337a6f52316c8834eb361c47f31b563..dc568c1fd285ef88781b9c0d05fd9ae5bab947eb 100755
--- a/tools/perf/run_benchmark
+++ b/tools/perf/run_benchmark
@@ -9,11 +9,10 @@ import sys
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry'))
from telemetry import test_runner
-from telemetry.core import environment
if __name__ == '__main__':
- base_dir = os.path.dirname(os.path.realpath(__file__))
+ top_level_dir = os.path.dirname(os.path.realpath(__file__))
test_aliases = {
'blink_perf': 'blink_perf.all',
'image_decoding.tough_decoding_cases':
@@ -21,5 +20,12 @@ if __name__ == '__main__':
'media.tough_media_cases': 'media.tough_video_cases',
'page_cycler.pica': 'pica.pica',
}
- test_runner.config = environment.Environment([base_dir], test_aliases)
- sys.exit(test_runner.main())
+
+ environment = test_runner.Environment(
+ top_level_dir=top_level_dir,
+ test_dirs=[os.path.join(top_level_dir, 'benchmarks')],
+ page_test_dirs=[os.path.join(top_level_dir, 'measurements')],
+ page_set_dirs=[os.path.join(top_level_dir, 'page_sets')],
+ test_aliases=test_aliases
+ )
+ sys.exit(test_runner.main(environment))
« no previous file with comments | « tools/perf/profile_creators/theme_profile_creator.py ('k') | tools/perf/run_measurement » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698