asv.commands.show

Classes

Show

Helper class that provides a standard way to create an ABC using

Module Contents

class asv.commands.show.Show[source]

Helper class that provides a standard way to create an ABC using inheritance.

classmethod setup_arguments(subparsers)[source]

Method to add the parser and arguments of the command.

In most cases, subparser.add_parser(cmd_name) should be called to add the command (where cmd_name is for example run or continuous). And then call add_argument to the returned parser, to add the command arguments.

classmethod run_from_conf_args(conf, args, **kwargs)[source]

Call the run method (i.e. cls.run) with the right arguments from conf and args. In most cases this is just something like clf.run(conf=conf, my_arg_1=args.my_arg_1, my_arg_2=args.my_arg_2, …).

classmethod run(conf, commit=None, bench=None, machine=None, env_spec=None, details=False, durations=False)[source]
classmethod _iter_results(conf, machines, env_names, commit_hash=None)[source]

Iterate over results for given machines/environments.

Yields

machinestr

Machine name

resultasv.result.Results

Results

classmethod _print_commits(conf, result_iter, benchmarks)[source]
classmethod _print_results(conf, commit_hash, result_iter, benchmarks, show_details=False)[source]
classmethod _print_benchmark(machine, result, benchmark, show_details=False)[source]
classmethod _get_durations(result_iter, benchmarks, commits=False)[source]
classmethod _print_commit_durations(conf, result_iter, benchmarks)[source]
classmethod _print_result_durations(conf, commit_hash, result_iter, benchmarks)[source]