mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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 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,
|
||||
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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user