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

Name of the collector class.

TOOLS

Sequence of tools to install on the target when using the collector.

Properties

logger inherited

Convenience short-hand for self.get_logger().

Methods

__enter__()

__exit__()

__getattr__

Delegate attribute lookup to a private attribute.

get_data()

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() inherited

Provides a logging.Logger named after cls.

log_locals() inherited

Debugging 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.__enter__()[source]#
CollectorBase.__exit__(*args, **kwargs)[source]#
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 after cls.

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, use lisa.trace.CollectorBase.get_data() instead