mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-ui: add mark hits to details
This commit is contained in:
@ -162,7 +162,12 @@ add_marks_to_details (SysprofCaptureView *self)
|
|||||||
const gchar *name = k;
|
const gchar *name = k;
|
||||||
const SysprofMarkStat *st = v;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -199,7 +199,8 @@ sysprof_details_view_add_mark (SysprofDetailsView *self,
|
|||||||
const gchar *mark,
|
const gchar *mark,
|
||||||
gint64 min,
|
gint64 min,
|
||||||
gint64 max,
|
gint64 max,
|
||||||
gint64 avg)
|
gint64 avg,
|
||||||
|
gint64 hits)
|
||||||
{
|
{
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
|
|
||||||
@ -211,5 +212,6 @@ sysprof_details_view_add_mark (SysprofDetailsView *self,
|
|||||||
1, min ? _sysprof_format_duration (min) : "—",
|
1, min ? _sysprof_format_duration (min) : "—",
|
||||||
2, max ? _sysprof_format_duration (max) : "—",
|
2, max ? _sysprof_format_duration (max) : "—",
|
||||||
3, avg ? _sysprof_format_duration (avg) : "—",
|
3, avg ? _sysprof_format_duration (avg) : "—",
|
||||||
|
4, hits,
|
||||||
-1);
|
-1);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,7 +36,8 @@ void sysprof_details_view_add_mark (SysprofDetailsView *self,
|
|||||||
const gchar *mark,
|
const gchar *mark,
|
||||||
gint64 min,
|
gint64 min,
|
||||||
gint64 max,
|
gint64 max,
|
||||||
gint64 avg);
|
gint64 avg,
|
||||||
|
gint64 hits);
|
||||||
void sysprof_details_view_add_item (SysprofDetailsView *self,
|
void sysprof_details_view_add_item (SysprofDetailsView *self,
|
||||||
GtkWidget *left,
|
GtkWidget *left,
|
||||||
GtkWidget *center);
|
GtkWidget *center);
|
||||||
|
|||||||
@ -228,6 +228,19 @@
|
|||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</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>
|
<child>
|
||||||
<object class="GtkTreeViewColumn">
|
<object class="GtkTreeViewColumn">
|
||||||
<property name="title" translatable="yes">Min</property>
|
<property name="title" translatable="yes">Min</property>
|
||||||
@ -290,6 +303,8 @@
|
|||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
<!-- column-name Avg -->
|
<!-- column-name Avg -->
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
|
<!-- column-name Hits -->
|
||||||
|
<column type="gint64"/>
|
||||||
</columns>
|
</columns>
|
||||||
</object>
|
</object>
|
||||||
</interface>
|
</interface>
|
||||||
|
|||||||
Reference in New Issue
Block a user