sysprof: add SysprofTimeFilterModel

This is a model that expects the set to be in sorted order by time, and
requires that the items are a SysprofDocumentFrame. If that holds true,
it can binary search to find the correct frames based on a requested
time-span that is inclusive only of matching frames.

This is useful to dive down into data based on either the visible or
selected time span of a session without having to expensive GtkFilter
operations (which would look at every object in the set).
This commit is contained in:
Christian Hergert
2023-07-13 11:05:22 -07:00
parent f39723c2e6
commit b9f7ecd945
3 changed files with 455 additions and 0 deletions

View File

@ -16,6 +16,7 @@ sysprof_sources = [
'sysprof-sidebar.c',
'sysprof-single-model.c',
'sysprof-time-scrubber.c',
'sysprof-time-filter-model.c',
'sysprof-traceables-utility.c',
'sysprof-window.c',
]