libsysprof-analyze: add mark catalog kind

We can use this to separate catalogs for names vs groups when building
tree models of them.
This commit is contained in:
Christian Hergert
2023-06-15 11:52:15 -07:00
parent 8b4ab761ab
commit 9a762fa1d4
5 changed files with 49 additions and 9 deletions

View File

@ -1492,12 +1492,12 @@ sysprof_document_catalog_marks (SysprofDocument *self)
while (g_hash_table_iter_next (&name_iter, (gpointer *)&name, (gpointer *)&marks))
{
g_autoptr(GListModel) model = _sysprof_document_bitset_index_new (G_LIST_MODEL (self), marks);
g_autoptr(SysprofMarkCatalog) names_catalog = _sysprof_mark_catalog_new (name, model);
g_autoptr(SysprofMarkCatalog) names_catalog = _sysprof_mark_catalog_new (name, model, SYSPROF_MARK_CATALOG_KIND_NAME);
g_list_store_append (names_store, names_catalog);
}
group = _sysprof_mark_catalog_new (group_name, G_LIST_MODEL (names_store));
group = _sysprof_mark_catalog_new (group_name, G_LIST_MODEL (names_store), SYSPROF_MARK_CATALOG_KIND_GROUP);
g_list_store_append (store, group);
}