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

@ -1,6 +1,7 @@
libsysprof_profile_public_sources = [
'sysprof-battery-charge.c',
'sysprof-cpu-usage.c',
'sysprof-diagnostic.c',
'sysprof-disk-usage.c',
'sysprof-energy-usage.c',
'sysprof-instrument.c',
@ -28,6 +29,7 @@ libsysprof_profile_public_headers = [
'sysprof-battery-charge.h',
'sysprof-cpu-usage.h',
'sysprof-diagnostic.h',
'sysprof-disk-usage.h',
'sysprof-energy-usage.h',
'sysprof-instrument.h',