lisa.trace.ComposedCollector#
- class lisa.trace.ComposedCollector(collectors)[source]#
Bases:
MappingCompose multiple
lisa.trace.CollectorBasetogether.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’
NAMEattribute 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.DmesgCollectorare 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()