mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
sysprof: filter sample graph by visible time range
This allows it to avoid a bunch of work when you've dived down into a section of visible time, as fewer nodes need to be looked at.
This commit is contained in:
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include "sysprof-samples-section.h"
|
#include "sysprof-samples-section.h"
|
||||||
#include "sysprof-traceables-utility.h"
|
#include "sysprof-traceables-utility.h"
|
||||||
|
#include "sysprof-time-filter-model.h"
|
||||||
#include "sysprof-time-scrubber.h"
|
#include "sysprof-time-scrubber.h"
|
||||||
|
|
||||||
struct _SysprofSamplesSection
|
struct _SysprofSamplesSection
|
||||||
@ -59,6 +60,7 @@ sysprof_samples_section_class_init (SysprofSamplesSectionClass *klass)
|
|||||||
g_type_ensure (SYSPROF_TYPE_CHART);
|
g_type_ensure (SYSPROF_TYPE_CHART);
|
||||||
g_type_ensure (SYSPROF_TYPE_XY_SERIES);
|
g_type_ensure (SYSPROF_TYPE_XY_SERIES);
|
||||||
g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER);
|
g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER);
|
||||||
|
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);
|
||||||
g_type_ensure (SYSPROF_TYPE_VALUE_AXIS);
|
g_type_ensure (SYSPROF_TYPE_VALUE_AXIS);
|
||||||
|
|||||||
@ -29,13 +29,22 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="series">
|
<property name="series">
|
||||||
<object class="SysprofXYSeries">
|
<object class="SysprofXYSeries">
|
||||||
<binding name="model">
|
<property name="model">
|
||||||
<lookup name="samples" type="SysprofDocument">
|
<object class="SysprofTimeFilterModel">
|
||||||
<lookup name="document" type="SysprofSession">
|
<binding name="time-span">
|
||||||
<lookup name="session">SysprofSamplesSection</lookup>
|
<lookup name="visible-time" type="SysprofSession">
|
||||||
</lookup>
|
<lookup name="session">SysprofSamplesSection</lookup>
|
||||||
</lookup>
|
</lookup>
|
||||||
</binding>
|
</binding>
|
||||||
|
<binding name="model">
|
||||||
|
<lookup name="samples" type="SysprofDocument">
|
||||||
|
<lookup name="document" type="SysprofSession">
|
||||||
|
<lookup name="session">SysprofSamplesSection</lookup>
|
||||||
|
</lookup>
|
||||||
|
</lookup>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
<property name="x-expression">
|
<property name="x-expression">
|
||||||
<lookup name="time" type="SysprofDocumentFrame"/>
|
<lookup name="time" type="SysprofDocumentFrame"/>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user