diff --git a/src/libsysprof-ui/sysprof-recording-state-view.c b/src/libsysprof-ui/sysprof-recording-state-view.c index d0d82802..31f19b2d 100644 --- a/src/libsysprof-ui/sysprof-recording-state-view.c +++ b/src/libsysprof-ui/sysprof-recording-state-view.c @@ -66,9 +66,14 @@ sysprof_recording_state_view_notify_elapsed (SysprofRecordingStateView *self, { SysprofCaptureStat st; 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); - 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); } diff --git a/src/libsysprof-ui/ui/sysprof-recording-state-view.ui b/src/libsysprof-ui/ui/sysprof-recording-state-view.ui index 948ae343..4b42b7dc 100644 --- a/src/libsysprof-ui/ui/sysprof-recording-state-view.ui +++ b/src/libsysprof-ui/ui/sysprof-recording-state-view.ui @@ -50,7 +50,7 @@ true - Samples + Events 1.0 baseline true