benchbuild.reports package

Register reports for an experiment

class benchbuild.reports.Report(experiment_name, exp_ids, out_path, session, name=NOTHING, supported_experiments=NOTHING, experiment_ids=None)[source]

Bases: object

NAME = None
SUPPORTED_EXPERIMENTS = []
class benchbuild.reports.ReportRegistry(name, bases, _dict)[source]

Bases: type

reports = {'full': <class 'benchbuild.reports.status.FullDump'>, 'raw': <class 'benchbuild.reports.raw.RawReport'>, 'status': <class 'benchbuild.reports.status.StatusReport'>}
benchbuild.reports.discover()[source]

Import all experiments listed in *_PLUGINS_REPORTS.

Tests:
>>> from benchbuild.settings import CFG
>>> from benchbuild.reports import discover
>>> import logging as lg
>>> import sys
>>> l = lg.getLogger('benchbuild')
>>> l.setLevel(lg.DEBUG)
>>> l.handlers = [lg.StreamHandler(stream=sys.stdout)]
>>> CFG["plugins"]["reports"] = ["benchbuild.non.existing", "benchbuild.reports.raw"]
>>> discover()
Could not find 'benchbuild.non.existing'
Found report: benchbuild.reports.raw
benchbuild.reports.load_experiment_ids_from_names(session, names)[source]