[sysprof/wip/chergert/sysprof-3] libsysprof-ui: add mark hits to details
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof-ui: add mark hits to details
- Date: Wed, 22 May 2019 06:52:29 +0000 (UTC)
commit fb5faf300511ecb37aa93fef5588c05d7ec4f9cd
Author: Christian Hergert <chergert redhat com>
Date: Tue May 21 22:22:58 2019 -0700
libsysprof-ui: add mark hits to details
src/libsysprof-ui/sysprof-capture-view.c | 7 ++++++-
src/libsysprof-ui/sysprof-details-view.c | 4 +++-
src/libsysprof-ui/sysprof-details-view.h | 3 ++-
src/libsysprof-ui/ui/sysprof-details-view.ui | 15 +++++++++++++++
4 files changed, 26 insertions(+), 3 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-capture-view.c b/src/libsysprof-ui/sysprof-capture-view.c
index e99f901..5992660 100644
--- a/src/libsysprof-ui/sysprof-capture-view.c
+++ b/src/libsysprof-ui/sysprof-capture-view.c
@@ -162,7 +162,12 @@ add_marks_to_details (SysprofCaptureView *self)
const gchar *name = k;
const SysprofMarkStat *st = v;
- sysprof_details_view_add_mark (priv->details_view, name, st->min, st->max, st->avg);
+ sysprof_details_view_add_mark (priv->details_view,
+ name,
+ st->min,
+ st->max,
+ st->avg,
+ st->count);
}
}
diff --git a/src/libsysprof-ui/sysprof-details-view.c b/src/libsysprof-ui/sysprof-details-view.c
index 4a96e0a..c15de8c 100644
--- a/src/libsysprof-ui/sysprof-details-view.c
+++ b/src/libsysprof-ui/sysprof-details-view.c
@@ -199,7 +199,8 @@ sysprof_details_view_add_mark (SysprofDetailsView *self,
const gchar *mark,
gint64 min,
gint64 max,
- gint64 avg)
+ gint64 avg,
+ gint64 hits)
{
GtkTreeIter iter;
@@ -211,5 +212,6 @@ sysprof_details_view_add_mark (SysprofDetailsView *self,
1, min ? _sysprof_format_duration (min) : "—",
2, max ? _sysprof_format_duration (max) : "—",
3, avg ? _sysprof_format_duration (avg) : "—",
+ 4, hits,
-1);
}
diff --git a/src/libsysprof-ui/sysprof-details-view.h b/src/libsysprof-ui/sysprof-details-view.h
index 993b08f..c512298 100644
--- a/src/libsysprof-ui/sysprof-details-view.h
+++ b/src/libsysprof-ui/sysprof-details-view.h
@@ -36,7 +36,8 @@ void sysprof_details_view_add_mark (SysprofDetailsView *self,
const gchar *mark,
gint64 min,
gint64 max,
- gint64 avg);
+ gint64 avg,
+ gint64 hits);
void sysprof_details_view_add_item (SysprofDetailsView *self,
GtkWidget *left,
GtkWidget *center);
diff --git a/src/libsysprof-ui/ui/sysprof-details-view.ui b/src/libsysprof-ui/ui/sysprof-details-view.ui
index 3365eea..ecab435 100644
--- a/src/libsysprof-ui/ui/sysprof-details-view.ui
+++ b/src/libsysprof-ui/ui/sysprof-details-view.ui
@@ -228,6 +228,19 @@
</child>
</object>
</child>
+ <child>
+ <object class="GtkTreeViewColumn">
+ <property name="title" translatable="yes">Hits</property>
+ <child>
+ <object class="GtkCellRendererText">
+ <property name="xalign">0.0</property>
+ </object>
+ <attributes>
+ <attribute name="text">4</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
<child>
<object class="GtkTreeViewColumn">
<property name="title" translatable="yes">Min</property>
@@ -290,6 +303,8 @@
<column type="gchararray"/>
<!-- column-name Avg -->
<column type="gchararray"/>
+ <!-- column-name Hits -->
+ <column type="gint64"/>
</columns>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]