mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user