[sysprof] libsysprof-capture: increase rate of buffer read
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-capture: increase rate of buffer read
- Date: Sun, 16 Feb 2020 05:02:52 +0000 (UTC)
commit c0697c91cc4aaef70a28c5625f5c0e82ff06e0ae
Author: Christian Hergert <chergert redhat com>
Date: Sat Feb 15 21:53:34 2020 -0700
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 ce12209..0fc0d3d 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]