lisa.trace.requires_events#
- lisa.trace.requires_events(*events, **kwargs)[source]#
Decorator for methods that require some given trace events.
- Parameters:
events (list(str or TraceEventCheckerBase)) – The list of required events
check (bool) – Check that the listed events are present in the
self.trace
attribute of the instance on which the decorated method is applied. If no such attribute is found, no check will be done.