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

@ -27,19 +27,6 @@ G_BEGIN_DECLS
typedef struct _SysprofCaptureWriter SysprofCaptureWriter;
typedef struct
{
/*
* The number of frames indexed by SysprofCaptureFrameType
*/
gsize frame_count[16];
/*
* Padding for future expansion.
*/
gsize padding[48];
} SysprofCaptureStat;
SYSPROF_AVAILABLE_IN_ALL
SysprofCaptureWriter *sysprof_capture_writer_new_from_env (gsize buffer_size);
SYSPROF_AVAILABLE_IN_ALL