def GetAllContribBenchmarks(): """Returns the list of all contrib benchmarks. The benchmarks are sorted by order of their names. """ benchmarks = discover.DiscoverClasses( start_dir=path_util.GetPerfContribDir(), 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 GetAllContribBenchmarks(): return discover.DiscoverClasses( start_dir=path_util.GetPerfContribDir(), top_level_dir=path_util.GetPerfDir(), base_class=benchmark_module.Benchmark, index_by_class_name=True).values()