mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-analyze: expose processes as property
This commit is contained in:
@ -107,6 +107,7 @@ enum {
|
||||
PROP_0,
|
||||
PROP_ALLOCATIONS,
|
||||
PROP_COUNTERS,
|
||||
PROP_PROCESSES,
|
||||
PROP_SAMPLES,
|
||||
PROP_TIME_SPAN,
|
||||
PROP_TITLE,
|
||||
@ -313,6 +314,10 @@ sysprof_document_get_property (GObject *object,
|
||||
g_value_take_object (value, sysprof_document_list_counters (self));
|
||||
break;
|
||||
|
||||
case PROP_PROCESSES:
|
||||
g_value_take_object (value, sysprof_document_list_processes (self));
|
||||
break;
|
||||
|
||||
case PROP_SAMPLES:
|
||||
g_value_take_object (value, sysprof_document_list_samples (self));
|
||||
break;
|
||||
@ -348,6 +353,11 @@ sysprof_document_class_init (SysprofDocumentClass *klass)
|
||||
G_TYPE_LIST_MODEL,
|
||||
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
properties [PROP_PROCESSES] =
|
||||
g_param_spec_object ("processes", 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,
|
||||
|
||||
Reference in New Issue
Block a user