mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-ui: stat before usage
This commit is contained in:
@ -68,11 +68,11 @@ sysprof_recording_state_view_notify_elapsed (SysprofRecordingStateView *self,
|
|||||||
g_autofree gchar *samples = NULL;
|
g_autofree gchar *samples = NULL;
|
||||||
gint64 count;
|
gint64 count;
|
||||||
|
|
||||||
|
sysprof_capture_writer_stat (writer, &st);
|
||||||
count = st.frame_count[SYSPROF_CAPTURE_FRAME_SAMPLE] +
|
count = st.frame_count[SYSPROF_CAPTURE_FRAME_SAMPLE] +
|
||||||
st.frame_count[SYSPROF_CAPTURE_FRAME_MARK] +
|
st.frame_count[SYSPROF_CAPTURE_FRAME_MARK] +
|
||||||
st.frame_count[SYSPROF_CAPTURE_FRAME_CTRSET];
|
st.frame_count[SYSPROF_CAPTURE_FRAME_CTRSET];
|
||||||
|
|
||||||
sysprof_capture_writer_stat (writer, &st);
|
|
||||||
samples = g_strdup_printf ("%"G_GINT64_FORMAT, count);
|
samples = g_strdup_printf ("%"G_GINT64_FORMAT, count);
|
||||||
gtk_label_set_label (priv->samples, samples);
|
gtk_label_set_label (priv->samples, samples);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user