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.
This commit is contained in:
Christian Hergert
2020-02-15 21:53:34 -07:00
parent 47768859ad
commit c0697c91cc

View File

@ -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;
}