Module progbg.globals
Module to hold all the globals used within progbg
Expand source code
"""Module to hold all the globals used within progbg"""
_sb_registered_benchmarks = {}
_sb_registered_backend = {}
_sb_executions = []
_sb_graphs = []
_sb_figures = []
DEFAULT_SIZE = (3, 2.8)
"""Registration globals
These globals are used by the plan_* functions, as well as the
register_* decoraters to keep track of what has been planned
by the user
"""
GRAPHS_DIR = "graphs"
"""str: default graphs directory"""
# String versions of the dictionaries
_EDIT_GLOBAL_TABLE = {
"_sb_registered_benchmarks": _sb_registered_benchmarks,
"_sb_registered_backend": _sb_registered_backend,
"_sb_executions": _sb_executions,
"_sb_graphs": _sb_graphs,
"_sb_figures": _sb_figures,
"DEFAULT_SIZE": DEFAULT_SIZE,
}
"""Globals Table
Table to allow us to quickly access applicable global variables that need to be edited
within the globals() table. This is utilized within import_plan.
"""
_sb_rnames = ["_backend", "_execution_name", "_iter", "_workload"]
Global variables
var DEFAULT_SIZE
-
Registration globals
These globals are used by the plan_ functions, as well as the register_ decoraters to keep track of what has been planned by the user
var GRAPHS_DIR
-
str: default graphs directory