From 0643a2a6b40db4456c626f0061b5c2ac12a0b8b3 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sat, 8 Jul 2023 11:58:33 -0700 Subject: [PATCH] libsysprof-profile: add some logging information --- src/libsysprof-profile/sysprof-recording.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libsysprof-profile/sysprof-recording.c b/src/libsysprof-profile/sysprof-recording.c index 4971796c..c162b5f3 100644 --- a/src/libsysprof-profile/sysprof-recording.c +++ b/src/libsysprof-profile/sysprof-recording.c @@ -147,6 +147,8 @@ sysprof_recording_fiber (gpointer user_data) g_autoptr(DexFuture) message = dex_channel_receive (self->channel); g_autoptr(DexFuture) duration = dex_timeout_new_seconds (1); + g_debug ("Recording loop iteration"); + /* Wait for either recording of all instruments to complete or a * message from our channel with what to do next. */ @@ -186,6 +188,8 @@ sysprof_recording_fiber (gpointer user_data) } stop_recording: + g_debug ("Stopping recording"); + end_time = SYSPROF_CAPTURE_CURRENT_TIME; self->end_time = g_get_monotonic_time (); @@ -526,7 +530,7 @@ sysprof_recording_add_file_fiber (gpointer user_data) data += to_write; } - return dex_future_new_for_boolean (TRUE); + return dex_future_new_for_boolean (TRUE); } DexFuture *