lisa.energy_meter.Gem5EnergyMeter#
- class lisa.energy_meter.Gem5EnergyMeter(target, channel_map, res_dir=None)[source]#
Bases:
EnergyMeterCommon functionality for devlib Instruments in CONTINUOUS mode
Deprecated since version 2.0.
Gem5EnergyMeteris deprecated and will be removed in version 4.0: LISA energy meters are deprecated, please use devlib instruments or contribute the instrument to devlibClasses
Configuration class for
Gem5EnergyMeter.Attributes
Dictionary of
__init__parameter names to configuration key path.Properties
loggerinheritedConvenience short-hand for
self.get_logger().Methods
Get total energy consumption since last
reset().Reset the energy meter.
check_init_param()inheritedTake the same parameters as
__init__, and check their types according to what is specified in the configuration class.conf_to_init_kwargs()inheritedTurn a configuration object into a dictionary suitable for passing to
__init__as**kwargs.from_conf()inheritedBuild an instance of
EnergyMeterfrom a configuration object.get_logger()inheritedProvides a
logging.Loggernamed aftercls.log_locals()inheritedDebugging aid: log the local variables of the calling function.
sample()inheritedGet a sample from the energy meter.
Classes#
- Gem5EnergyMeter.CONF_CLASS#
alias of
Gem5EnergyMeterConf
Attributes#
- Gem5EnergyMeter.INIT_KWARGS_KEY_MAP = {'channel_map': ['channel-map']}#
Dictionary of
__init__parameter names to configuration key path.That path is a list of strings to take into account sublevels like
['level-key', 'sublevel', 'foo'].
- Gem5EnergyMeter.name = 'gem5'#
Properties#
- property Gem5EnergyMeter.logger#
Inherited property, see
lisa.utils.Loggable.loggerConvenience short-hand for
self.get_logger().
Methods#
- Gem5EnergyMeter.report(out_dir, out_energy='energy.json', out_samples='samples.csv')#
Get total energy consumption since last
reset()
- classmethod Gem5EnergyMeter.check_init_param(**kwargs)#
Inherited method, see
lisa.conf.Configurable.check_init_param()Take the same parameters as
__init__, and check their types according to what is specified in the configuration class.
- classmethod Gem5EnergyMeter.conf_to_init_kwargs(conf)#
Inherited method, see
lisa.conf.Configurable.conf_to_init_kwargs()Turn a configuration object into a dictionary suitable for passing to
__init__as**kwargs.
- classmethod Gem5EnergyMeter.from_conf(target, conf, res_dir=None)#
Inherited method, see
lisa.energy_meter.EnergyMeter.from_conf()Build an instance of
EnergyMeterfrom a configuration object.
- classmethod Gem5EnergyMeter.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()Provides a
logging.Loggernamed aftercls.
- classmethod Gem5EnergyMeter.log_locals(var_names=None, level='debug')#
Inherited method, see
lisa.utils.Loggable.log_locals()Debugging aid: log the local variables of the calling function.
- abstract Gem5EnergyMeter.sample()#
Inherited method, see
lisa.energy_meter.EnergyMeter.sample()Get a sample from the energy meter.