From 730f8f4d66044099ff28e6922b2d571a7439c87b Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 13 Jul 2023 11:16:14 -0700 Subject: [PATCH] sysprof: filter the callgraph by the selected time span This ensures the callgraph code has fewer items to look at. The first level of filtering is done by the SysprofDocument bitset index for items matching the type (via SysprofDocumentBitsetIndex). Then the new SysprofTimeFilterModel filters the frames by time-span by binary searching for the first and last indexes which match that time span, avoiding the pathological case of linear search for the spans (which would inflate a GObject for every element). --- src/sysprof/sysprof-samples-section.ui | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/sysprof/sysprof-samples-section.ui b/src/sysprof/sysprof-samples-section.ui index 28342975..bf031860 100644 --- a/src/sysprof/sysprof-samples-section.ui +++ b/src/sysprof/sysprof-samples-section.ui @@ -88,13 +88,22 @@ SysprofSamplesSection - - - - SysprofSamplesSection - - - + + + + + SysprofSamplesSection + + + + + + SysprofSamplesSection + + + + +