libsysprof-ui: add section for counter values

This commit is contained in:
Christian Hergert
2019-05-22 11:37:56 -07:00
parent b854a71804
commit bc21b47315
3 changed files with 31 additions and 1 deletions

View File

@ -361,10 +361,11 @@ cursor_foreach_cb (const SysprofCaptureFrame *frame,
item.end_time = frame->time;
item.group = ctr->category;
item.name = ctr->name;
item.value = values->values[j];
item.is_counter = TRUE;
item.counter_type = ctr->type;
memcpy (&item.value, &values->values[j], sizeof item.value);
g_array_append_val (self->items, item);
}
}