libsysprof-analyze: add SysprofDocumentFileChunk

This object will represent frames in the list model which are file chunks.
This commit is contained in:
Christian Hergert
2023-05-05 13:29:06 -07:00
parent 1c75c4c548
commit 235dd98621
5 changed files with 213 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include "sysprof-document-allocation.h"
#include "sysprof-document-exit.h"
#include "sysprof-document-file-chunk.h"
#include "sysprof-document-fork.h"
#include "sysprof-document-log.h"
#include "sysprof-document-mark.h"
@ -163,6 +164,10 @@ _sysprof_document_frame_new (GMappedFile *mapped_file,
gtype = SYSPROF_TYPE_DOCUMENT_ALLOCATION;
break;
case SYSPROF_CAPTURE_FRAME_FILE_CHUNK:
gtype = SYSPROF_TYPE_DOCUMENT_FILE_CHUNK;
break;
default:
gtype = SYSPROF_TYPE_DOCUMENT_FRAME;
break;