[sysprof/wip/chergert/sysprof-3] libsysprof-ui: add counters to details
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof-ui: add counters to details
- Date: Thu, 23 May 2019 21:36:48 +0000 (UTC)
commit 887d63fb9797253a6e75b13efea64dffc73d2029
Author: Christian Hergert <chergert redhat com>
Date: Thu May 23 14:36:38 2019 -0700
libsysprof-ui: add counters to details
src/libsysprof-ui/sysprof-details-view.c | 3 +++
src/libsysprof-ui/ui/sysprof-details-view.ui | 32 +++++++++++++++++++++++++---
2 files changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-details-view.c b/src/libsysprof-ui/sysprof-details-view.c
index c15de8c..0fd6f37 100644
--- a/src/libsysprof-ui/sysprof-details-view.c
+++ b/src/libsysprof-ui/sysprof-details-view.c
@@ -38,6 +38,7 @@ struct _SysprofDetailsView
DzlThreeGrid *three_grid;
GtkListStore *marks_store;
GtkTreeView *marks_view;
+ GtkLabel *counters;
GtkLabel *duration;
GtkLabel *filename;
GtkLabel *forks;
@@ -89,6 +90,7 @@ sysprof_details_view_class_init (SysprofDetailsViewClass *klass)
object_class->finalize = sysprof_details_view_finalize;
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/sysprof/ui/sysprof-details-view.ui");
+ gtk_widget_class_bind_template_child (widget_class, SysprofDetailsView, counters);
gtk_widget_class_bind_template_child (widget_class, SysprofDetailsView, duration);
gtk_widget_class_bind_template_child (widget_class, SysprofDetailsView, filename);
gtk_widget_class_bind_template_child (widget_class, SysprofDetailsView, forks);
@@ -165,6 +167,7 @@ sysprof_details_view_set_reader (SysprofDetailsView *self,
SET_FRAME_COUNT (marks, SYSPROF_CAPTURE_FRAME_MARK);
SET_FRAME_COUNT (processes, SYSPROF_CAPTURE_FRAME_PROCESS);
SET_FRAME_COUNT (forks, SYSPROF_CAPTURE_FRAME_FORK);
+ SET_FRAME_COUNT (counters, SYSPROF_CAPTURE_FRAME_CTRSET);
#undef SET_FRAME_COUNT
}
diff --git a/src/libsysprof-ui/ui/sysprof-details-view.ui b/src/libsysprof-ui/ui/sysprof-details-view.ui
index ecab435..f43976a 100644
--- a/src/libsysprof-ui/ui/sysprof-details-view.ui
+++ b/src/libsysprof-ui/ui/sysprof-details-view.ui
@@ -104,7 +104,6 @@
<child>
<object class="GtkLabel">
<property name="visible">True</property>
- <property name="margin-bottom">12</property>
<property name="label" translatable="yes">Forks Captured</property>
<property name="xalign">1</property>
<style>
@@ -116,6 +115,21 @@
<property name="row">6</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="margin-bottom">12</property>
+ <property name="label" translatable="yes">Counters Captured</property>
+ <property name="xalign">1</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ <packing>
+ <property name="column">left</property>
+ <property name="row">7</property>
+ </packing>
+ </child>
<child>
<object class="GtkLabel" id="filename">
<property name="width-chars">35</property>
@@ -194,7 +208,6 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="ellipsize">start</property>
- <property name="margin-bottom">12</property>
<property name="xalign">0</property>
</object>
<packing>
@@ -202,6 +215,19 @@
<property name="row">6</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="counters">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="ellipsize">start</property>
+ <property name="margin-bottom">12</property>
+ <property name="xalign">0</property>
+ </object>
+ <packing>
+ <property name="column">center</property>
+ <property name="row">7</property>
+ </packing>
+ </child>
<child>
<object class="GtkFrame">
<property name="visible">True</property>
@@ -285,7 +311,7 @@
</object>
<packing>
<property name="column">center</property>
- <property name="row">7</property>
+ <property name="row">8</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]