profiling
This commit is contained in:
parent
7044b1e588
commit
c0ffa3967b
9 changed files with 354 additions and 1298 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue