lisa.trace.CollectorBase#
- class lisa.trace.CollectorBase(collector, output_path=None)[source]#
Bases:
Loggable
Base class for
devlib.collector.CollectorBase
-based collectors using composition.Attributes
Name of the collector class.
Sequence of tools to install on the target when using the collector.
Properties
logger
inheritedConvenience short-hand for
self.get_logger()
.Methods
Delegate attribute lookup to a private attribute.
Similar to
devlib.collector.CollectorBase.get_data()
but takes the path directly as a parameter in order to disallow representing an invalid state where no path has been set.get_logger()
inheritedProvides a
logging.Logger
named aftercls
.log_locals()
inheritedDebugging aid: log the local variables of the calling function.
Attributes#
- CollectorBase.NAME = None#
Name of the collector class.
- CollectorBase.TOOLS = []#
Sequence of tools to install on the target when using the collector.
Properties#
- property CollectorBase.logger#
Inherited property, see
lisa.utils.Loggable.logger
Convenience short-hand for
self.get_logger()
.
Methods#
- CollectorBase.__getattr__(attr)#
Delegate attribute lookup to a private attribute.
- CollectorBase.get_data(path=None)[source]#
Similar to
devlib.collector.CollectorBase.get_data()
but takes the path directly as a parameter in order to disallow representing an invalid state where no path has been set.
- classmethod CollectorBase.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()
Provides a
logging.Logger
named aftercls
.
- classmethod CollectorBase.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.
- CollectorBase.get_trace(path)[source]#
Deprecated alias for
get_data()
.Deprecated since version 2.0.
get_trace()
is deprecated and will be removed in version 4.0, uselisa.trace.CollectorBase.get_data()
instead