wire up marks reader

This commit is contained in:
Christian Hergert
2019-05-12 18:35:22 -07:00
parent 7756dffbc7
commit 364f35a7fb
5 changed files with 37 additions and 3 deletions

View File

@ -33,8 +33,10 @@ struct _SysprofMarksModel
typedef struct
{
gint64 begin_time;
gint64 end_time;
gint64 begin_time;
gint64 end_time;
const gchar *group;
const gchar *name;
} Item;
static void
@ -84,6 +86,8 @@ cursor_foreach_cb (const SysprofCaptureFrame *frame,
item.begin_time = frame->time;
item.end_time = item.begin_time + mark->duration;
item.group = g_string_chunk_insert_const (self->chunks, mark->group);
item.name = g_string_chunk_insert_const (self->chunks, mark->name);
g_array_append_val (self->items, item);