diff --git a/src/sysprof/sysprof-marks-section.c b/src/sysprof/sysprof-marks-section.c index 7394374a..2cac2efa 100644 --- a/src/sysprof/sysprof-marks-section.c +++ b/src/sysprof/sysprof-marks-section.c @@ -31,10 +31,12 @@ struct _SysprofMarksSection { - SysprofSection parent_instance; + SysprofSection parent_instance; - SysprofMarkChart *mark_chart; - SysprofMarkTable *mark_table; + SysprofMarkChart *mark_chart; + SysprofMarkTable *mark_table; + GtkColumnView *summary_column_view; + GtkColumnViewColumn *median_column; }; G_DEFINE_FINAL_TYPE (SysprofMarksSection, sysprof_marks_section, SYSPROF_TYPE_SECTION) @@ -69,10 +71,13 @@ sysprof_marks_section_class_init (SysprofMarksSectionClass *klass) gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/sysprof/sysprof-marks-section.ui"); gtk_widget_class_bind_template_child (widget_class, SysprofMarksSection, mark_chart); gtk_widget_class_bind_template_child (widget_class, SysprofMarksSection, mark_table); + gtk_widget_class_bind_template_child (widget_class, SysprofMarksSection, median_column); + gtk_widget_class_bind_template_child (widget_class, SysprofMarksSection, summary_column_view); gtk_widget_class_bind_template_callback (widget_class, format_number); g_type_ensure (SYSPROF_TYPE_CHART); g_type_ensure (SYSPROF_TYPE_DOCUMENT_MARK); + g_type_ensure (SYSPROF_TYPE_MARK_CATALOG); g_type_ensure (SYSPROF_TYPE_MARK_CHART); g_type_ensure (SYSPROF_TYPE_MARK_TABLE); g_type_ensure (SYSPROF_TYPE_SESSION_MODEL); @@ -85,4 +90,8 @@ static void sysprof_marks_section_init (SysprofMarksSection *self) { gtk_widget_init_template (GTK_WIDGET (self)); + + gtk_column_view_sort_by_column (self->summary_column_view, + self->median_column, + GTK_SORT_DESCENDING); } diff --git a/src/sysprof/sysprof-marks-section.ui b/src/sysprof/sysprof-marks-section.ui index 399ab511..bbc883c1 100644 --- a/src/sysprof/sysprof-marks-section.ui +++ b/src/sysprof/sysprof-marks-section.ui @@ -196,6 +196,250 @@ + + + Summary + info-symbolic + + + + + + + + + + + summary_column_view + + + + + + + + SysprofMarksSection + + + + + + + + + + + + Category + + + + + + + + + + + + + +]]> + + + + + + + + Name + + + + + + + + + + + + + +]]> + + + + + + + + Minimum + + + + + + + + + + + + + +]]> + + + + + + + + Maximum + + + + + + + + + + + + + +]]> + + + + + + + + Average + + + + + + + + + + + + + +]]> + + + + + + + + Median + + + + + + + + + + + + + +]]> + + + + + + + + + + + @@ -208,4 +452,3 @@ -