From 4d553ec88eb2576259b8aa0a71791820da38dffa Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 29 Jun 2023 14:20:02 -0700 Subject: [PATCH] libsysprof-profile: more CPU data points 2x per second just isn't enough data points for useful graphs. Ideally we will make this tunable by the instrument, but not for now. --- src/libsysprof-profile/sysprof-cpu-usage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsysprof-profile/sysprof-cpu-usage.c b/src/libsysprof-profile/sysprof-cpu-usage.c index 744b8227..d29a2545 100644 --- a/src/libsysprof-profile/sysprof-cpu-usage.c +++ b/src/libsysprof-profile/sysprof-cpu-usage.c @@ -346,9 +346,9 @@ sysprof_cpu_usage_record_fiber (gpointer user_data) values, n_cpu * 2 + 1); - /* Wait for cancellation or ½ second */ + /* Wait for cancellation or ⅕ second */ dex_await (dex_future_first (dex_ref (record->cancellable), - dex_timeout_new_usec (G_USEC_PER_SEC / 2), + dex_timeout_new_usec (G_USEC_PER_SEC / 5), NULL), NULL); if (dex_future_get_status (record->cancellable) != DEX_FUTURE_STATUS_PENDING)