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-memory-callgraph-view.h"
#include "sysprof-memory-section.h"
#include "sysprof-sampled-model.h"
#include "sysprof-session-model-item.h"
#include "sysprof-session-model.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_TRACEABLE);
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_XY_SERIES);
}

View File

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