libsysprof-analyze: add counters property

This commit is contained in:
Christian Hergert
2023-06-26 17:52:36 -07:00
parent d386f13051
commit db0d5cce91

View File

@ -103,6 +103,7 @@ typedef struct _SysprofDocumentFramePointer
enum {
PROP_0,
PROP_ALLOCATIONS,
PROP_COUNTERS,
PROP_SAMPLES,
PROP_TIME_SPAN,
N_PROPS
@ -273,6 +274,10 @@ sysprof_document_get_property (GObject *object,
g_value_take_object (value, sysprof_document_list_allocations (self));
break;
case PROP_COUNTERS:
g_value_take_object (value, sysprof_document_list_counters (self));
break;
case PROP_SAMPLES:
g_value_take_object (value, sysprof_document_list_samples (self));
break;
@ -299,6 +304,11 @@ sysprof_document_class_init (SysprofDocumentClass *klass)
G_TYPE_LIST_MODEL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
properties [PROP_COUNTERS] =
g_param_spec_object ("counters", NULL, NULL,
G_TYPE_LIST_MODEL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
properties [PROP_SAMPLES] =
g_param_spec_object ("samples", NULL, NULL,
G_TYPE_LIST_MODEL,