mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof: add stack traces above callgraph
This still needs to be put into a proper selectable container, but having the chart there gives me some idea of how things look for now.
This commit is contained in:
@ -54,6 +54,10 @@ sysprof_samples_section_class_init (SysprofSamplesSectionClass *klass)
|
||||
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/sysprof/sysprof-samples-section.ui");
|
||||
gtk_widget_class_bind_template_child (widget_class, SysprofSamplesSection, callgraph_view);
|
||||
|
||||
g_type_ensure (SYSPROF_TYPE_CHART);
|
||||
g_type_ensure (SYSPROF_TYPE_XY_SERIES);
|
||||
g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER);
|
||||
g_type_ensure (SYSPROF_TYPE_VALUE_AXIS);
|
||||
g_type_ensure (SYSPROF_TYPE_WEIGHTED_CALLGRAPH_VIEW);
|
||||
}
|
||||
|
||||
|
||||
@ -5,6 +5,44 @@
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="SysprofChart">
|
||||
<property name="height-request">32</property>
|
||||
<child>
|
||||
<object class="SysprofColumnLayer">
|
||||
<property name="title">Stack Traces</property>
|
||||
<binding name="x-axis">
|
||||
<lookup name="selected-time-axis" type="SysprofSession">
|
||||
<lookup name="session">SysprofSamplesSection</lookup>
|
||||
</lookup>
|
||||
</binding>
|
||||
<property name="y-axis">
|
||||
<object class="SysprofValueAxis">
|
||||
<property name="min-value">0</property>
|
||||
<property name="max-value">128</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="series">
|
||||
<object class="SysprofXYSeries">
|
||||
<binding name="model">
|
||||
<lookup name="samples" type="SysprofDocument">
|
||||
<lookup name="document" type="SysprofSession">
|
||||
<lookup name="session">SysprofSamplesSection</lookup>
|
||||
</lookup>
|
||||
</lookup>
|
||||
</binding>
|
||||
<property name="x-expression">
|
||||
<lookup name="time" type="SysprofDocumentFrame"/>
|
||||
</property>
|
||||
<property name="y-expression">
|
||||
<lookup name="stack-depth" type="SysprofDocumentTraceable"/>
|
||||
</property>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="SysprofWeightedCallgraphView" id="callgraph_view">
|
||||
<property name="vexpand">true</property>
|
||||
|
||||
Reference in New Issue
Block a user