performance/benchmarks/__init__.py
def expand_benchmark_name(bm_name, bench_groups):
    """Recursively expand name benchmark names.

    Args:
        bm_name: string naming a benchmark or benchmark group.

    Yields:
        Names of actual benchmarks, with all group names fully expanded.
    """
    expansion = bench_groups.get(bm_name)
    if expansion:
        for name in expansion:
            for name in expand_benchmark_name(name, bench_groups):
                yield name
    else:
        yield bm_name
def expand_benchmark_name(bm_name, bench_groups):
    expansion = bench_groups.get(bm_name)
    if expansion:
        for name in expansion:
            for name in expand_benchmark_name(name, bench_groups):
                yield name
    else:
        yield bm_name
def expand_benchmark_name ( bm_name , bench_groups ) : expansion = bench_groups . get ( bm_name ) if expansion : for name in expansion : for name in expand_benchmark_name ( name , bench_groups ) : yield name else : yield bm_name
Recursively expand name benchmark names.

    Args:
        bm_name: string naming a benchmark or benchmark group.

    Yields:
        Names of actual benchmarks, with all group names fully expanded.
Recursively expand name benchmark names .