lisa.trace.ComposedCollector#
- class lisa.trace.ComposedCollector(collectors)[source]#
Bases:
Mapping
Compose multiple
lisa.trace.CollectorBase
together.When used as a context manager, collectors will be nested. Individual collectors can be retrieved by using the instance as a mapping, using the collectors’
NAME
attribute as key.Note
Only one collector of each type is allowed. This allows:
Getting back the collector instance using a fixed name.
Some collectors like
lisa.trace.DmesgCollector
are not re-entrant
Attributes
__reversed__
inheritedSee
collections.abc.Mapping.__reversed__
Methods
__class_getitem__()
inheritedSee
collections.abc.Iterable.__class_getitem__()
__contains__()
inheritedSee
collections.abc.Mapping.__contains__()
get()
inheritedSee
collections.abc.Mapping.get()
items()
inheritedSee
collections.abc.Mapping.items()
keys()
inheritedSee
collections.abc.Mapping.keys()
values()
inheritedSee
collections.abc.Mapping.values()
Attributes#
- ComposedCollector.__reversed__ = None#
Methods#
- classmethod ComposedCollector.__class_getitem__()#
Inherited method, see
collections.abc.Iterable.__class_getitem__()
- ComposedCollector.__contains__()#
Inherited method, see
collections.abc.Mapping.__contains__()
- ComposedCollector.get()#
Inherited method, see
collections.abc.Mapping.get()
- ComposedCollector.items()#
Inherited method, see
collections.abc.Mapping.items()
- ComposedCollector.keys()#
Inherited method, see
collections.abc.Mapping.keys()
- ComposedCollector.values()#
Inherited method, see
collections.abc.Mapping.values()