libsysprof-analyze: track frame length

That way we don't have to decode this too in the subclasses.
This commit is contained in:
Christian Hergert
2023-04-25 17:09:04 -07:00
parent 62863f08c3
commit 97c93ea965
3 changed files with 30 additions and 12 deletions

View File

@ -28,10 +28,12 @@ G_BEGIN_DECLS
struct _SysprofDocumentFrame
{
GObject parent_instance;
GObject parent;
GMappedFile *mapped_file;
const SysprofCaptureFrame *frame;
guint needs_swap : 1;
guint32 frame_len : 16;
guint32 needs_swap : 1;
guint32 padding : 15;
};
struct _SysprofDocumentFrameClass
@ -41,6 +43,7 @@ struct _SysprofDocumentFrameClass
SysprofDocumentFrame *_sysprof_document_frame_new (GMappedFile *mapped,
const SysprofCaptureFrame *frame,
guint16 frame_len,
gboolean needs_swap);
#define SYSPROF_DOCUMENT_FRAME_GET(obj, type) \