sysprof: use sampled model to limit input to xy series

This commit is contained in:
Christian Hergert
2023-08-15 17:36:25 -07:00
parent 08664bdcda
commit efee8bda79
2 changed files with 20 additions and 13 deletions

View File

@ -22,6 +22,7 @@
#include "sysprof-chart.h" #include "sysprof-chart.h"
#include "sysprof-column-layer.h" #include "sysprof-column-layer.h"
#include "sysprof-sampled-model.h"
#include "sysprof-samples-section.h" #include "sysprof-samples-section.h"
#include "sysprof-session-model-item.h" #include "sysprof-session-model-item.h"
#include "sysprof-session-model.h" #include "sysprof-session-model.h"
@ -79,6 +80,7 @@ sysprof_samples_section_class_init (SysprofSamplesSectionClass *klass)
g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER); g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER);
g_type_ensure (SYSPROF_TYPE_DOCUMENT_SAMPLE); g_type_ensure (SYSPROF_TYPE_DOCUMENT_SAMPLE);
g_type_ensure (SYSPROF_TYPE_DOCUMENT_TRACEABLE); g_type_ensure (SYSPROF_TYPE_DOCUMENT_TRACEABLE);
g_type_ensure (SYSPROF_TYPE_SAMPLED_MODEL);
g_type_ensure (SYSPROF_TYPE_TIME_FILTER_MODEL); g_type_ensure (SYSPROF_TYPE_TIME_FILTER_MODEL);
g_type_ensure (SYSPROF_TYPE_TIME_SCRUBBER); g_type_ensure (SYSPROF_TYPE_TIME_SCRUBBER);
g_type_ensure (SYSPROF_TYPE_TRACEABLES_UTILITY); g_type_ensure (SYSPROF_TYPE_TRACEABLES_UTILITY);

View File

@ -41,19 +41,24 @@
<property name="series"> <property name="series">
<object class="SysprofXYSeries"> <object class="SysprofXYSeries">
<property name="model"> <property name="model">
<object class="SysprofTimeFilterModel"> <object class="SysprofSampledModel">
<binding name="time-span"> <property name="max-items">5000</property>
<lookup name="visible-time" type="SysprofSession"> <property name="model">
<lookup name="session">SysprofSamplesSection</lookup> <object class="SysprofTimeFilterModel">
</lookup> <binding name="time-span">
</binding> <lookup name="visible-time" type="SysprofSession">
<binding name="model"> <lookup name="session">SysprofSamplesSection</lookup>
<lookup name="samples" type="SysprofDocument"> </lookup>
<lookup name="document" type="SysprofSession"> </binding>
<lookup name="session">SysprofSamplesSection</lookup> <binding name="model">
</lookup> <lookup name="samples" type="SysprofDocument">
</lookup> <lookup name="document" type="SysprofSession">
</binding> <lookup name="session">SysprofSamplesSection</lookup>
</lookup>
</lookup>
</binding>
</object>
</property>
</object> </object>
</property> </property>
<property name="x-expression"> <property name="x-expression">