From e6a769b386b520f7ae6239e4ee97e5e524402ad0 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 10 Jul 2023 13:54:45 -0700 Subject: [PATCH] sysprof: add stack traces above callgraph This still needs to be put into a proper selectable container, but having the chart there gives me some idea of how things look for now. --- src/sysprof/sysprof-samples-section.c | 4 +++ src/sysprof/sysprof-samples-section.ui | 38 ++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/src/sysprof/sysprof-samples-section.c b/src/sysprof/sysprof-samples-section.c index d8efb01b..71fe3e6a 100644 --- a/src/sysprof/sysprof-samples-section.c +++ b/src/sysprof/sysprof-samples-section.c @@ -54,6 +54,10 @@ sysprof_samples_section_class_init (SysprofSamplesSectionClass *klass) gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/sysprof/sysprof-samples-section.ui"); gtk_widget_class_bind_template_child (widget_class, SysprofSamplesSection, callgraph_view); + g_type_ensure (SYSPROF_TYPE_CHART); + g_type_ensure (SYSPROF_TYPE_XY_SERIES); + g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER); + g_type_ensure (SYSPROF_TYPE_VALUE_AXIS); g_type_ensure (SYSPROF_TYPE_WEIGHTED_CALLGRAPH_VIEW); } diff --git a/src/sysprof/sysprof-samples-section.ui b/src/sysprof/sysprof-samples-section.ui index f95837e4..8b459290 100644 --- a/src/sysprof/sysprof-samples-section.ui +++ b/src/sysprof/sysprof-samples-section.ui @@ -5,6 +5,44 @@ vertical + + + 32 + + + Stack Traces + + + SysprofSamplesSection + + + + + 0 + 128 + + + + + + + + SysprofSamplesSection + + + + + + + + + + + + + + + true