profiling

This commit is contained in:
Siwat Sirichai 2025-11-10 00:10:53 +07:00
parent 7044b1e588
commit c0ffa3967b
9 changed files with 354 additions and 1298 deletions

View file

@ -448,6 +448,10 @@ class StreamDecoder:
with self._buffer_lock:
return len(self.frame_buffer)
def get_frame_count(self) -> int:
"""Get total number of frames decoded since start"""
return self.frame_count
def is_connected(self) -> bool:
"""Check if stream is actively connected"""
return self.get_status() == ConnectionStatus.CONNECTED