libsysprof: add SysprofCaptureModel

This adds a GListModel that we can use to load capture files. The goal here
is to map the entire capture into memory so we can avoid reading lots of
buffers. That also allows for the model items to live as long as the model
is alive (or underlying file map, really).

The next goal is to stack features on top of this such as implementing the
callgraph as a filter of the model, or generic filters between the
callgraph model and the actual data source model.
This commit is contained in:
Christian Hergert
2023-04-24 17:21:59 -07:00
parent cc7e2820f3
commit dcbeb0f87a
9 changed files with 408 additions and 0 deletions

View File

@ -28,7 +28,9 @@ G_BEGIN_DECLS
# include "sysprof-battery-source.h"
# include "sysprof-callgraph-profile.h"
# include "sysprof-capture-autocleanups.h"
# include "sysprof-capture-frame-object.h"
# include "sysprof-capture-gobject.h"
# include "sysprof-capture-model.h"
# include "sysprof-capture-symbol-resolver.h"
# include "sysprof-control-source.h"
# include "sysprof-diskstat-source.h"