From 10807758aaf7dcd99922cbbf273fe9b4fa1b89b1 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 15 Aug 2023 19:08:15 -0700 Subject: [PATCH] sysprof: use sampled model for marks scrubber This can save a tramendous number of items to look at in the scrubber. --- src/sysprof/sysprof-marks-section.c | 2 ++ src/sysprof/sysprof-marks-section.ui | 31 ++++++++++++++++------------ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/sysprof/sysprof-marks-section.c b/src/sysprof/sysprof-marks-section.c index 2cac2efa..9ee2af91 100644 --- a/src/sysprof/sysprof-marks-section.c +++ b/src/sysprof/sysprof-marks-section.c @@ -24,6 +24,7 @@ #include "sysprof-mark-chart.h" #include "sysprof-mark-table.h" #include "sysprof-marks-section.h" +#include "sysprof-sampled-model.h" #include "sysprof-session-model.h" #include "sysprof-session-model-item.h" #include "sysprof-time-series.h" @@ -80,6 +81,7 @@ sysprof_marks_section_class_init (SysprofMarksSectionClass *klass) 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_SAMPLED_MODEL); g_type_ensure (SYSPROF_TYPE_SESSION_MODEL); g_type_ensure (SYSPROF_TYPE_SESSION_MODEL_ITEM); g_type_ensure (SYSPROF_TYPE_TIME_SERIES); diff --git a/src/sysprof/sysprof-marks-section.ui b/src/sysprof/sysprof-marks-section.ui index 580191e2..33312a3d 100644 --- a/src/sysprof/sysprof-marks-section.ui +++ b/src/sysprof/sysprof-marks-section.ui @@ -36,19 +36,24 @@ - - - - SysprofMarksSection - - - - - - SysprofMarksSection - - - + + 1000 + + + + + SysprofMarksSection + + + + + + SysprofMarksSection + + + + +