From 72cf6ff3a54be6b1b0214f50d0ed95bf87d5f7f1 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 13 Jul 2023 11:06:06 -0700 Subject: [PATCH] sysprof: filter sample graph by visible time range This allows it to avoid a bunch of work when you've dived down into a section of visible time, as fewer nodes need to be looked at. --- src/sysprof/sysprof-samples-section.c | 2 ++ src/sysprof/sysprof-samples-section.ui | 23 ++++++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/sysprof/sysprof-samples-section.c b/src/sysprof/sysprof-samples-section.c index 614423fb..10160797 100644 --- a/src/sysprof/sysprof-samples-section.c +++ b/src/sysprof/sysprof-samples-section.c @@ -24,6 +24,7 @@ #include "sysprof-samples-section.h" #include "sysprof-traceables-utility.h" +#include "sysprof-time-filter-model.h" #include "sysprof-time-scrubber.h" struct _SysprofSamplesSection @@ -59,6 +60,7 @@ sysprof_samples_section_class_init (SysprofSamplesSectionClass *klass) 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_TIME_FILTER_MODEL); g_type_ensure (SYSPROF_TYPE_TIME_SCRUBBER); g_type_ensure (SYSPROF_TYPE_TRACEABLES_UTILITY); g_type_ensure (SYSPROF_TYPE_VALUE_AXIS); diff --git a/src/sysprof/sysprof-samples-section.ui b/src/sysprof/sysprof-samples-section.ui index a844ecb3..28342975 100644 --- a/src/sysprof/sysprof-samples-section.ui +++ b/src/sysprof/sysprof-samples-section.ui @@ -29,13 +29,22 @@ - - - - SysprofSamplesSection - - - + + + + + SysprofSamplesSection + + + + + + SysprofSamplesSection + + + + +