libsysprof-analyze: add support for getting counter values

This commit is contained in:
Christian Hergert
2023-05-22 16:46:36 -07:00
parent 227362ea09
commit d510dd50da
10 changed files with 364 additions and 10 deletions

View File

@ -479,7 +479,7 @@ sysprof_document_load_counters (SysprofDocument *self)
for (guint j = 0; j < n_counters; j++)
{
g_autoptr(GArray) values = g_array_new (FALSE, FALSE, sizeof (SysprofDocumentCounterValue));
g_autoptr(GArray) values = g_array_new (FALSE, FALSE, sizeof (SysprofDocumentTimedValue));
const char *category;
const char *name;
const char *description;
@ -520,7 +520,7 @@ sysprof_document_load_counters (SysprofDocument *self)
{
g_autoptr(SysprofDocumentCtrset) ctrset = g_list_model_get_item (model, i);
guint n_values = sysprof_document_ctrset_get_n_values (ctrset);
SysprofDocumentCounterValue ctrval;
SysprofDocumentTimedValue ctrval;
ctrval.time = sysprof_document_frame_get_time (SYSPROF_DOCUMENT_FRAME (ctrset));