+ @property
+ def trace(self):
+ trace_ptr = self._borrow_trace_ptr(self._ptr)
+ assert trace_ptr is not None
+ return self._trace_pycls._create_from_ptr_and_get_ref(trace_ptr)
+
+
+class _Stream(_StreamConst):
+ _borrow_class_ptr = staticmethod(native_bt.stream_borrow_class)
+ _borrow_user_attributes_ptr = staticmethod(native_bt.stream_borrow_user_attributes)
+ _create_value_from_ptr_and_get_ref = staticmethod(
+ bt2_value._create_from_ptr_and_get_ref
+ )
+ _borrow_trace_ptr = staticmethod(native_bt.stream_borrow_trace)
+ _stream_class_pycls = bt2_stream_class._StreamClass
+ _trace_pycls = bt2_trace._Trace
+