mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
libsysprof-ui: include samples, marks, and ctrset in events
This commit is contained in:
@ -66,9 +66,14 @@ sysprof_recording_state_view_notify_elapsed (SysprofRecordingStateView *self,
|
|||||||
{
|
{
|
||||||
SysprofCaptureStat st;
|
SysprofCaptureStat st;
|
||||||
g_autofree gchar *samples = NULL;
|
g_autofree gchar *samples = NULL;
|
||||||
|
gint64 count;
|
||||||
|
|
||||||
|
count = st.frame_count[SYSPROF_CAPTURE_FRAME_SAMPLE] +
|
||||||
|
st.frame_count[SYSPROF_CAPTURE_FRAME_MARK] +
|
||||||
|
st.frame_count[SYSPROF_CAPTURE_FRAME_CTRSET];
|
||||||
|
|
||||||
sysprof_capture_writer_stat (writer, &st);
|
sysprof_capture_writer_stat (writer, &st);
|
||||||
samples = g_strdup_printf ("%"G_GINT64_FORMAT, st.frame_count[SYSPROF_CAPTURE_FRAME_SAMPLE]);
|
samples = g_strdup_printf ("%"G_GINT64_FORMAT, count);
|
||||||
gtk_label_set_label (priv->samples, samples);
|
gtk_label_set_label (priv->samples, samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@
|
|||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label" translatable="yes">Samples</property>
|
<property name="label" translatable="yes">Events</property>
|
||||||
<property name="xalign">1.0</property>
|
<property name="xalign">1.0</property>
|
||||||
<property name="valign">baseline</property>
|
<property name="valign">baseline</property>
|
||||||
<property name="visible">true</property>
|
<property name="visible">true</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user