feat(trace): trace fps and midi with args

This commit is contained in:
2025-11-03 21:46:14 +01:00
parent 0039bbace2
commit 2657c2b732
8 changed files with 41 additions and 20 deletions
+4 -2
View File
@@ -329,7 +329,7 @@ static bool read_video(VideoCapture *video_capture) {
}
bool video_background_read(VideoCapture *video_capture, SharedContext *context,
int input_index) {
int input_index, bool trace_fps) {
pid_t pid;
Timer timer;
double fps;
@@ -352,7 +352,9 @@ bool video_background_read(VideoCapture *video_capture, SharedContext *context,
fps = timer_reset(&timer);
context->input_fps[input_index] = (unsigned int)round(fps);
log_trace("(%s) %.2ffps", video_capture->name, fps);
if (trace_fps) {
log_trace("(%s) %.2ffps", video_capture->name, fps);
}
}
}
if (context->stop) {