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.
This commit is contained in:
Christian Hergert
2023-06-29 14:20:02 -07:00
parent 22cee18f61
commit 4d553ec88e

View File

@ -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)