libsysprof-analyze: add SysprofDocumentCtrset

This represents the SysprofCaptureCtrset and allows fetching the raw values
for a given counter. These are raw because they may not be endian swapped
and that is the responsibility of the consumer.

SysprofDocument will use these eventually to store the values for a given
counter and the time of the value shift.
This commit is contained in:
Christian Hergert
2023-05-22 16:03:46 -07:00
parent c3a5771da0
commit 9d2f7d3767
6 changed files with 154 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include "sysprof-document-allocation.h"
#include "sysprof-document-ctrdef.h"
#include "sysprof-document-ctrset.h"
#include "sysprof-document-exit.h"
#include "sysprof-document-file-chunk.h"
#include "sysprof-document-fork.h"
@ -183,6 +184,10 @@ _sysprof_document_frame_new (GMappedFile *mapped_file,
gtype = SYSPROF_TYPE_DOCUMENT_CTRDEF;
break;
case SYSPROF_CAPTURE_FRAME_CTRSET:
gtype = SYSPROF_TYPE_DOCUMENT_CTRSET;
break;
default:
gtype = SYSPROF_TYPE_DOCUMENT_FRAME;
break;