libsysprof-profile: add SysprofDiagnostic to recordings

This allows instruments to record a diagnostic and have it land as an
object in a GListModel of diagnostics available to the API consumer.

Such items may be used by recording UI to display issues with the recording
to the user.
This commit is contained in:
Christian Hergert
2023-06-13 11:30:45 -07:00
parent 6ab28ff641
commit 1f6cc39554
9 changed files with 356 additions and 14 deletions

View File

@ -42,5 +42,13 @@ void _sysprof_recording_add_file_data (SysprofRecording *s
const char *path,
const char *contents,
gssize length);
void _sysprof_recording_diagnostic (SysprofRecording *self,
const char *domain,
const char *format,
...) G_GNUC_PRINTF (3, 4);
void _sysprof_recording_error (SysprofRecording *self,
const char *domain,
const char *format,
...) G_GNUC_PRINTF (3, 4);
G_END_DECLS