benchbuild.reports package¶
Register reports for an experiment
- 
class benchbuild.reports.Report(exp_ids, out_path)[source]¶
- Bases: - object- 
SUPPORTED_EXPERIMENTS= None¶
 
- 
- 
class benchbuild.reports.ReportRegistry(name, bases, dict)[source]¶
- Bases: - type- 
reports= {'raw': [<class 'benchbuild.reports.raw.RawReport'>], 'pj-test': [<class 'benchbuild.experiments.pjtest.TestReport'>]}¶
 
- 
- 
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') >>> lg.getLogger('benchbuild').setLevel(lg.DEBUG) >>> lg.getLogger('benchbuild').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