libsysprof-capture: add stats to reader when possible

We can also back-fill these when reading a capture file.
This commit is contained in:
Christian Hergert
2019-05-15 16:38:47 -07:00
parent 6437dba247
commit aed80ea51f
5 changed files with 56 additions and 14 deletions

View File

@ -85,6 +85,12 @@ SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_capture_reader_save_as (SysprofCaptureReader *self,
const gchar *filename,
GError **error);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_capture_reader_get_stat (SysprofCaptureReader *self,
SysprofCaptureStat *st_buf);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_capture_reader_set_stat (SysprofCaptureReader *self,
const SysprofCaptureStat *st_buf);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofCaptureReader, sysprof_capture_reader_unref)