lisa.trace.AndTraceEventChecker#
- class lisa.trace.AndTraceEventChecker(event_checkers=None, **kwargs)[source]#
Bases:
AssociativeTraceEventChecker
Check that all the given event checkers are satisfied.
- Parameters:
event_checkers (list(TraceEventCheckerBase)) – Event checkers to check for
Properties
logger
inheritedConvenience short-hand for
self.get_logger()
.Methods
Top-level function called by Sphinx’s autodoc extension to augment docstrings of the functions.
__and__()
inheritedCombine two event checkers into one that checks the presence of both.
__bool__()
inherited__call__()
inheritedDecorator for methods that require some given trace events.
__class_getitem__()
inheritedSee
collections.abc.Iterable.__class_getitem__()
__contains__()
inherited__getitem__()
inherited__iter__()
inherited__len__()
inherited__matmul__()
inheritedCombine two event checkers into an optional one.
__or__()
inheritedCombine two event checkers into one that checks the presence of either of them.
__reversed__()
inheritedSee
collections.abc.Sequence.__reversed__()
check_events()
inheritedCheck that certain trace events are available in the given set of events.
count()
inheritedSee
collections.abc.Sequence.count()
expand_namespaces()
inheritedBuild a
TraceEventCheckerBase
that will fixup the event names to take into account the given namespaces.from_events()
inheritedBuild an instance of the class, converting
str
toTraceEventChecker
.get_all_events()
inheritedReturn a set of all events that are checked by this checker.
get_logger()
inheritedProvides a
logging.Logger
named aftercls
.index()
inheritedSee
collections.abc.Sequence.index()
log_locals()
inheritedDebugging aid: log the local variables of the calling function.
map()
inheritedApply the given function to all the children and rebuild a new object with the result.
Properties#
- property AndTraceEventChecker.logger#
Inherited property, see
lisa.utils.Loggable.logger
Convenience short-hand for
self.get_logger()
.
Methods#
- AndTraceEventChecker.doc_str()[source]#
Top-level function called by Sphinx’s autodoc extension to augment docstrings of the functions.
- AndTraceEventChecker.__and__(other)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__and__()
Combine two event checkers into one that checks the presence of both.
- AndTraceEventChecker.__bool__()#
Inherited method, see
lisa.trace.AssociativeTraceEventChecker.__bool__()
- AndTraceEventChecker.__call__(f)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__call__()
Decorator for methods that require some given trace events.
- classmethod AndTraceEventChecker.__class_getitem__()#
Inherited method, see
collections.abc.Iterable.__class_getitem__()
- AndTraceEventChecker.__contains__(event)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__contains__()
- AndTraceEventChecker.__getitem__(i)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__getitem__()
- AndTraceEventChecker.__iter__()#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__iter__()
- AndTraceEventChecker.__len__(event)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__len__()
- AndTraceEventChecker.__matmul__(other)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__matmul__()
Combine two event checkers into an optional one.
- AndTraceEventChecker.__or__(other)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.__or__()
Combine two event checkers into one that checks the presence of either of them.
- AndTraceEventChecker.__reversed__()#
Inherited method, see
collections.abc.Sequence.__reversed__()
- AndTraceEventChecker.check_events(event_set, check_optional=False, namespaces=None)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.check_events()
Check that certain trace events are available in the given set of events.
- AndTraceEventChecker.count()#
Inherited method, see
collections.abc.Sequence.count()
- AndTraceEventChecker.expand_namespaces(namespaces=None)#
Inherited method, see
lisa.trace.TraceEventCheckerBase.expand_namespaces()
Build a
TraceEventCheckerBase
that will fixup the event names to take into account the given namespaces.
- classmethod AndTraceEventChecker.from_events(events, **kwargs)#
Inherited method, see
lisa.trace.AssociativeTraceEventChecker.from_events()
Build an instance of the class, converting
str
toTraceEventChecker
.
- AndTraceEventChecker.get_all_events()#
Inherited method, see
lisa.trace.AssociativeTraceEventChecker.get_all_events()
Return a set of all events that are checked by this checker.
- classmethod AndTraceEventChecker.get_logger(suffix=None)#
Inherited method, see
lisa.utils.Loggable.get_logger()
Provides a
logging.Logger
named aftercls
.
- AndTraceEventChecker.index()#
Inherited method, see
collections.abc.Sequence.index()
- classmethod AndTraceEventChecker.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.
- AndTraceEventChecker.map(f)#
Inherited method, see
lisa.trace.AssociativeTraceEventChecker.map()
Apply the given function to all the children and rebuild a new object with the result.