mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: stop streams at end of recording
Don't wait for disposal to stop this recording.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user