libsysprof-gtk: include CPU in marks table

This can be useful when debugging things, so long as the app actually
used the active CPU.
This commit is contained in:
Christian Hergert
2023-07-13 18:05:18 -07:00
parent 8640a61667
commit a8257dbe81

View File

@ -77,6 +77,41 @@
</property>
</template>
</interface>
]]>
</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkColumnViewColumn" id="cpu_column">
<property name="title" translatable="yes">CPU</property>
<property name="sorter">
<object class="GtkNumericSorter">
<property name="expression">
<lookup name="cpu" type="SysprofDocumentFrame"/>
</property>
</object>
</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="GtkLabel">
<property name="xalign">1</property>
<property name="single-line-mode">true</property>
<binding name="label">
<lookup name="cpu" type="SysprofDocumentFrame">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
</object>
</property>
</template>
</interface>
]]>
</property>
</object>