Skip to main content

CaptureScope

An active capture region: while it is active, work dispatched on the constructing thread (and the streams it drives) is timed into the parent session. End it with end() or by using it as a context manager.

active (property)

Whether the capture region is still recording.

__init__

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

add_marker

add_markeradd_marker(self, label: str) -> None

add_marker(self, label: str) -> None

add_marker(label)

Drop a named instant event into the timeline at this point.

end

endend(self) -> None

end(self) -> None

end()

End the capture region; safe to call twice.