libsysprof-gtk: add augmented functions list

This provides an area to have augmented functions listing like we have in
the 3-part sysprof view in our current release.

The weighed callgrpah view uses this to show self/total sortable columns
similar to the descendants view.
This commit is contained in:
Christian Hergert
2023-06-12 11:16:41 -07:00
parent 643aa374cb
commit 451e79a84c
5 changed files with 259 additions and 26 deletions

View File

@ -2,19 +2,67 @@
<interface>
<template class="SysprofCallgraphView" parent="GtkWidget">
<child>
<object class="GtkScrolledWindow" id="scrolled_window">
<child>
<object class="GtkColumnView" id="column_view">
<style>
<class name="data-table"/>
</style>
<object class="GtkPaned" id="paned">
<property name="position">250</property>
<property name="start-child">
<object class="GtkPaned">
<property name="orientation">vertical</property>
<property name="start-child">
<object class="GtkScrolledWindow" id="functions_scrolled_window">
<property name="hscrollbar-policy">never</property>
<child>
<object class="GtkColumnView" id="functions_column_view">
<child>
<object class="GtkColumnViewColumn" id="function_column">
<property name="title" translatable="yes">Functions</property>
<property name="expand">true</property>
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtkListItem">
<property name="child">
<object class="GtkInscription">
<property name="text-overflow">ellipsize-end</property>
<property name="xalign">.0</property>
<binding name="text">
<lookup name="name">
<lookup name="symbol" type="SysprofCallgraphSymbol">
<lookup name="item">GtkListItem</lookup>
</lookup>
</lookup>
</binding>
</object>
</property>
</template>
</interface>
]]>
</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
<property name="end-child">
<object class="GtkScrolledWindow" id="scrolled_window">
<child>
<object class="GtkColumnViewColumn" id="function_column">
<property name="title" translatable="yes">Function</property>
<property name="expand">true</property>
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
<object class="GtkColumnView" id="column_view">
<style>
<class name="data-table"/>
</style>
<child>
<object class="GtkColumnViewColumn" id="descendants_column">
<property name="title" translatable="yes">Descendants</property>
<property name="expand">true</property>
<property name="factory">
<object class="GtkBuilderListItemFactory">
<property name="bytes"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtkListItem">
@ -81,13 +129,15 @@
</template>
</interface>
]]>
</property>
</object>
</property>
</object>
</property>
</child>
</object>
</child>
</object>
</child>
</property>
</object>
</child>
</template>