From 08664bdcdacccc714c1ef40e7f9936c6672090ce Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 15 Aug 2023 17:30:37 -0700 Subject: [PATCH] sysprof: limit number of samples sent for normalization --- src/sysprof/sysprof-memory-section.c | 2 ++ src/sysprof/sysprof-memory-section.ui | 31 ++++++++++++++++----------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/sysprof/sysprof-memory-section.c b/src/sysprof/sysprof-memory-section.c index 3cc4899c..2ca360c1 100644 --- a/src/sysprof/sysprof-memory-section.c +++ b/src/sysprof/sysprof-memory-section.c @@ -32,6 +32,7 @@ #include "sysprof-column-layer.h" #include "sysprof-memory-callgraph-view.h" #include "sysprof-memory-section.h" +#include "sysprof-sampled-model.h" #include "sysprof-session-model-item.h" #include "sysprof-session-model.h" #include "sysprof-time-series.h" @@ -181,6 +182,7 @@ sysprof_memory_section_class_init (SysprofMemorySectionClass *klass) g_type_ensure (SYSPROF_TYPE_DOCUMENT_ALLOCATION); g_type_ensure (SYSPROF_TYPE_DOCUMENT_TRACEABLE); g_type_ensure (SYSPROF_TYPE_MEMORY_CALLGRAPH_VIEW); + g_type_ensure (SYSPROF_TYPE_SAMPLED_MODEL); g_type_ensure (SYSPROF_TYPE_VALUE_AXIS); g_type_ensure (SYSPROF_TYPE_XY_SERIES); } diff --git a/src/sysprof/sysprof-memory-section.ui b/src/sysprof/sysprof-memory-section.ui index 01537435..8dec6d44 100644 --- a/src/sysprof/sysprof-memory-section.ui +++ b/src/sysprof/sysprof-memory-section.ui @@ -41,19 +41,24 @@ - - - - SysprofMemorySection - - - - - - SysprofMemorySection - - - + + 5000 + + + + + SysprofMemorySection + + + + + + SysprofMemorySection + + + + +