sysprof: use sampled model for marks scrubber

This can save a tramendous number of items to look at in the scrubber.
This commit is contained in:
Christian Hergert
2023-08-15 19:08:15 -07:00
parent 31a6f64849
commit 10807758aa
2 changed files with 20 additions and 13 deletions

View File

@ -24,6 +24,7 @@
#include "sysprof-mark-chart.h" #include "sysprof-mark-chart.h"
#include "sysprof-mark-table.h" #include "sysprof-mark-table.h"
#include "sysprof-marks-section.h" #include "sysprof-marks-section.h"
#include "sysprof-sampled-model.h"
#include "sysprof-session-model.h" #include "sysprof-session-model.h"
#include "sysprof-session-model-item.h" #include "sysprof-session-model-item.h"
#include "sysprof-time-series.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_CATALOG);
g_type_ensure (SYSPROF_TYPE_MARK_CHART); g_type_ensure (SYSPROF_TYPE_MARK_CHART);
g_type_ensure (SYSPROF_TYPE_MARK_TABLE); 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);
g_type_ensure (SYSPROF_TYPE_SESSION_MODEL_ITEM); g_type_ensure (SYSPROF_TYPE_SESSION_MODEL_ITEM);
g_type_ensure (SYSPROF_TYPE_TIME_SERIES); g_type_ensure (SYSPROF_TYPE_TIME_SERIES);

View File

@ -36,19 +36,24 @@
<property name="series"> <property name="series">
<object class="SysprofTimeSeries"> <object class="SysprofTimeSeries">
<property name="model"> <property name="model">
<object class="SysprofTimeFilterModel"> <object class="SysprofSampledModel">
<binding name="time-span"> <property name="max-items">1000</property>
<lookup name="visible-time" type="SysprofSession"> <property name="model">
<lookup name="session">SysprofMarksSection</lookup> <object class="SysprofTimeFilterModel">
</lookup> <binding name="time-span">
</binding> <lookup name="visible-time" type="SysprofSession">
<binding name="model"> <lookup name="session">SysprofMarksSection</lookup>
<lookup name="marks" type="SysprofDocument"> </lookup>
<lookup name="document" type="SysprofSession"> </binding>
<lookup name="session">SysprofMarksSection</lookup> <binding name="model">
</lookup> <lookup name="marks" type="SysprofDocument">
</lookup> <lookup name="document" type="SysprofSession">
</binding> <lookup name="session">SysprofMarksSection</lookup>
</lookup>
</lookup>
</binding>
</object>
</property>
</object> </object>
</property> </property>
<property name="begin-time-expression"> <property name="begin-time-expression">