From a80db62d33c92873fe837e15d52f7a66d9ac4f62 Mon Sep 17 00:00:00 2001 From: Tim Huff Date: Tue, 3 Sep 2024 13:56:00 -0700 Subject: [PATCH] adding some debug logging --- src/framegrab/grabber.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/framegrab/grabber.py b/src/framegrab/grabber.py index ae5b8e4..8d8f9f9 100644 --- a/src/framegrab/grabber.py +++ b/src/framegrab/grabber.py @@ -366,7 +366,10 @@ def grab(self) -> np.ndarray: """Read a frame from the camera and perform post processing operations such as zoom, crop and rotation if necessary. Returns a frame. """ + t1 = time.time() frame = self._grab_implementation() + t2 = time.time() + logger.info(f'_grab_implementation completed in {t2 - t1}') if frame is None: name = self.config["name"] # all grabbers should have a name, either user-provided or generated