libsysprof-gtk: start on counter track ideas

This commit is contained in:
Christian Hergert
2023-06-29 14:15:26 -07:00
parent 0004d0bffa
commit 57e702b139
10 changed files with 328 additions and 34 deletions

View File

@ -22,6 +22,7 @@
#include <glib/gi18n.h>
#include "sysprof-counter-track-private.h"
#include "sysprof-session-private.h"
#include "sysprof-track.h"
@ -94,9 +95,9 @@ _sysprof_session_discover_tracks (SysprofSession *self,
g_autoptr(SysprofTrack) track = NULL;
g_autoptr(GListModel) subcounters = NULL;
track = g_object_new (SYSPROF_TYPE_TRACK,
"title", g_dgettext (GETTEXT_PACKAGE, info->track_name),
NULL);
track = sysprof_counter_track_new (self,
g_dgettext (GETTEXT_PACKAGE, info->track_name),
counter);
if ((subcounters = filter_counters (counters, info->category, info->subtracks_name_glob)))
{