[sysprof/wip/chergert/sysprof-3] libsysprof-ui: stat before usage



commit 50323fc6da2b05961b64fcfa451295be74692a03
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 20 17:55:31 2019 -0700

    libsysprof-ui: stat before usage

 src/libsysprof-ui/sysprof-recording-state-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-recording-state-view.c 
b/src/libsysprof-ui/sysprof-recording-state-view.c
index 31f19b2..687f728 100644
--- a/src/libsysprof-ui/sysprof-recording-state-view.c
+++ b/src/libsysprof-ui/sysprof-recording-state-view.c
@@ -68,11 +68,11 @@ sysprof_recording_state_view_notify_elapsed (SysprofRecordingStateView *self,
       g_autofree gchar *samples = NULL;
       gint64 count;
 
+      sysprof_capture_writer_stat (writer, &st);
       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, count);
       gtk_label_set_label (priv->samples, samples);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]