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

@ -27,6 +27,7 @@
#include "sysprof-document-file-chunk.h"
#include "sysprof-document-fork.h"
#include "sysprof-document-log.h"
#include "sysprof-document-jitmap.h"
#include "sysprof-document-mark.h"
#include "sysprof-document-mmap.h"
#include "sysprof-document-overlay.h"
@ -173,6 +174,10 @@ _sysprof_document_frame_new (GMappedFile *mapped_file,
gtype = SYSPROF_TYPE_DOCUMENT_OVERLAY;
break;
case SYSPROF_CAPTURE_FRAME_JITMAP:
gtype = SYSPROF_TYPE_DOCUMENT_JITMAP;
break;
default:
gtype = SYSPROF_TYPE_DOCUMENT_FRAME;
break;