libsysprof: stop streams at end of recording

Don't wait for disposal to stop this recording.
This commit is contained in:
Christian Hergert
2023-08-21 16:01:35 -07:00
parent 40c0791e23
commit 340e92403f

View File

@ -322,6 +322,16 @@ sysprof_scheduler_details_record_fiber (gpointer user_data)
dex_await (dex_ref (self->cancellable), NULL);
self->ended_at = SYSPROF_CAPTURE_CURRENT_TIME;
for (guint i = 0; i < self->streams->len; i++)
{
SysprofPerfEventStream *stream = g_ptr_array_index (self->streams, i);
sysprof_perf_event_stream_disable (stream, NULL);
}
if (self->streams->len)
g_ptr_array_remove_range (self->streams, 0, self->streams->len);
return dex_future_new_for_boolean (TRUE);
}