From c0697c91cc4aaef70a28c5625f5c0e82ff06e0ae Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 15 Feb 2020 21:53:34 -0700 Subject: [PATCH] libsysprof-capture: increase rate of buffer read This ideally should be dynamic in the future to copy out data at a rate that keeps us around 33% usage rate so that we can still burst if we need to but keep things empty enough to not loose data. --- src/libsysprof-capture/mapped-ring-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsysprof-capture/mapped-ring-buffer.c b/src/libsysprof-capture/mapped-ring-buffer.c index ce12209d..0fc0d3df 100644 --- a/src/libsysprof-capture/mapped-ring-buffer.c +++ b/src/libsysprof-capture/mapped-ring-buffer.c @@ -575,7 +575,7 @@ mapped_ring_source_prepare (GSource *source, if (g_atomic_int_get (&header->head) != g_atomic_int_get (&header->tail)) return TRUE; - *timeout_ = 1000 / 20; /* 20x a second */ + *timeout_ = 5; return FALSE; }