libsysprof-profile: add duration property for recording

So we can use this to update a recording timer view.
This commit is contained in:
Christian Hergert
2023-07-07 17:36:56 -07:00
parent b48ff9d014
commit d5a13ccdb4
2 changed files with 75 additions and 1 deletions

View File

@ -34,6 +34,8 @@ G_DECLARE_FINAL_TYPE (SysprofRecording, sysprof_recording, SYSPROF, RECORDING, G
SYSPROF_AVAILABLE_IN_ALL
GListModel *sysprof_recording_list_diagnostics (SysprofRecording *self);
SYSPROF_AVAILABLE_IN_ALL
gint64 sysprof_recording_get_duration (SysprofRecording *self);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_recording_wait_async (SysprofRecording *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,