libsysprof-analyze: add document type for samples

This commit is contained in:
Christian Hergert
2023-04-25 17:10:12 -07:00
parent a47627e5b9
commit ca83cd6b40
6 changed files with 186 additions and 3 deletions

View File

@ -36,10 +36,11 @@ main (int argc,
{
SysprofDocumentFrame *frame = g_list_model_get_item (G_LIST_MODEL (document), i);
g_print ("%"G_GINT64_FORMAT" [pid %d] [cpu %d]\n",
g_print ("%"G_GINT64_FORMAT" [pid %d] [cpu %d] (type %s)\n",
sysprof_document_frame_get_time (frame),
sysprof_document_frame_get_pid (frame),
sysprof_document_frame_get_cpu (frame));
sysprof_document_frame_get_cpu (frame),
G_OBJECT_TYPE_NAME (frame));
g_clear_object (&frame);
}