libsysprof-analyze: add SysprofDocumentJitmap

This adds a specific frame type for the Jitmap frames in the capture files.
You can iterate them without having to bswap as well, which is why this
does not use the SysprofCaptureJitmapIter (which does require bswap'd
frames).
This commit is contained in:
Christian Hergert
2023-05-22 12:18:57 -07:00
parent c7f025d4d3
commit d28080b9ad
9 changed files with 304 additions and 0 deletions

View File

@ -46,6 +46,9 @@ SysprofDocumentFrame *_sysprof_document_frame_new (GMappedFile *ma
guint16 frame_len,
gboolean needs_swap);
#define SYSPROF_DOCUMENT_FRAME_ENDPTR(obj) \
(&((const guint8 *)SYSPROF_DOCUMENT_FRAME(obj)->frame)[SYSPROF_DOCUMENT_FRAME(obj)->frame_len])
#define SYSPROF_DOCUMENT_FRAME_GET(obj, type) \
((const type *)(SYSPROF_DOCUMENT_FRAME(obj)->frame))