libsysprof-analyze: read property access to frame header

Also handle swapping the data when non-native endian so that we can leave
our GMappedFile unperturbed (and therefore not have to keep those bytes as
dirty pages in process).
This commit is contained in:
Christian Hergert
2023-04-25 15:55:41 -07:00
parent 31003c519c
commit 69930dc876
3 changed files with 135 additions and 10 deletions

View File

@ -26,6 +26,11 @@
G_BEGIN_DECLS
struct _SysprofDocumentFrameClass
{
GObjectClass parent_class;
};
SysprofDocumentFrame *sysprof_document_frame_new (GMappedFile *mapped,
gconstpointer data,
gboolean is_native);