sysprof: limit number of samples sent for normalization

This commit is contained in:
Christian Hergert
2023-08-15 17:30:37 -07:00
parent 6eb6514cd4
commit 08664bdcda
2 changed files with 20 additions and 13 deletions

View File

@ -32,6 +32,7 @@
#include "sysprof-column-layer.h" #include "sysprof-column-layer.h"
#include "sysprof-memory-callgraph-view.h" #include "sysprof-memory-callgraph-view.h"
#include "sysprof-memory-section.h" #include "sysprof-memory-section.h"
#include "sysprof-sampled-model.h"
#include "sysprof-session-model-item.h" #include "sysprof-session-model-item.h"
#include "sysprof-session-model.h" #include "sysprof-session-model.h"
#include "sysprof-time-series.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_ALLOCATION);
g_type_ensure (SYSPROF_TYPE_DOCUMENT_TRACEABLE); g_type_ensure (SYSPROF_TYPE_DOCUMENT_TRACEABLE);
g_type_ensure (SYSPROF_TYPE_MEMORY_CALLGRAPH_VIEW); 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_VALUE_AXIS);
g_type_ensure (SYSPROF_TYPE_XY_SERIES); g_type_ensure (SYSPROF_TYPE_XY_SERIES);
} }

View File

@ -40,6 +40,9 @@
</property> </property>
<property name="series"> <property name="series">
<object class="SysprofXYSeries"> <object class="SysprofXYSeries">
<property name="model">
<object class="SysprofSampledModel">
<property name="max-items">5000</property>
<property name="model"> <property name="model">
<object class="SysprofTimeFilterModel"> <object class="SysprofTimeFilterModel">
<binding name="time-span"> <binding name="time-span">
@ -56,6 +59,8 @@
</binding> </binding>
</object> </object>
</property> </property>
</object>
</property>
<property name="x-expression"> <property name="x-expression">
<lookup name="time" type="SysprofDocumentFrame"/> <lookup name="time" type="SysprofDocumentFrame"/>
</property> </property>