libsysprof-gtk: add label expression for time span

So we can show labels on things if zoomed in enough. We should also make
this available for hover/query-tooltip/etc.
This commit is contained in:
Christian Hergert
2023-06-30 16:56:41 -07:00
parent e8c11ea7d9
commit 6fe6ebf081
5 changed files with 135 additions and 7 deletions

View File

@ -387,7 +387,8 @@ create_chart_for_marks (SysprofTrack *track,
time_series = sysprof_time_series_new (sysprof_track_get_title (track),
g_object_ref (G_LIST_MODEL (info->model)),
gtk_property_expression_new (SYSPROF_TYPE_DOCUMENT_MARK, NULL, "time"),
gtk_property_expression_new (SYSPROF_TYPE_DOCUMENT_MARK, NULL, "duration"));
gtk_property_expression_new (SYSPROF_TYPE_DOCUMENT_MARK, NULL, "duration"),
gtk_property_expression_new (SYSPROF_TYPE_DOCUMENT_MARK, NULL, "message"));
chart = g_object_new (SYSPROF_TYPE_CHART, NULL);
layer = g_object_new (SYSPROF_TYPE_TIME_SPAN_LAYER,