def GetDefaultChromiumConfig(): return ChromiumConfig(benchmark_dirs=[ path_util.GetOfficialBenchmarksDir(), path_util.GetContribDir() ], top_level_dir=path_util.GetPerfDir(), expectations_files=[path_util.GetExpectationsPath()])
def main(): config = chromium_config.ChromiumConfig( benchmark_dirs=[ path_util.GetOfficialBenchmarksDir(), path_util.GetContribDir() ], top_level_dir=path_util.GetPerfDir(), expectations_files=[path_util.GetExpectationsPath()]) return benchmark_runner.main(config)
def _GetAllSystemHealthBenchmarks(): all_perf_benchmarks = discover.DiscoverClasses( path_util.GetOfficialBenchmarksDir(), path_util.GetPerfDir(), benchmark_module.Benchmark, index_by_class_name=True).values() return [ b for b in all_perf_benchmarks if sys.modules[b.__module__] == system_health_benchmark ]
def GetOfficialBenchmarks(): """Returns the list of all benchmarks to be run on perf waterfall. The benchmarks are sorted by order of their names. """ benchmarks = discover.DiscoverClasses( start_dir=path_util.GetOfficialBenchmarksDir(), top_level_dir=path_util.GetPerfDir(), base_class=benchmark_module.Benchmark, index_by_class_name=True).values() benchmarks.sort(key=lambda b: b.Name()) return benchmarks
def _GetAllPerfBenchmarks(): return list( discover.DiscoverClasses(path_util.GetOfficialBenchmarksDir(), path_util.GetPerfDir(), benchmark_module.Benchmark, index_by_class_name=True).values())