[sysprof] examples: initialize sysprof clock



commit 991e03ba67a32079f7322b6708676e9b3ab2bf12
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jul 17 17:28:31 2019 -0700

    examples: initialize sysprof clock

 examples/app.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/examples/app.c b/examples/app.c
index acf6444..bb10ba6 100644
--- a/examples/app.c
+++ b/examples/app.c
@@ -23,6 +23,8 @@ main (int   argc,
 {
   SysprofCaptureWriter *writer;
 
+  sysprof_clock_init ();
+
   /* Ignore SIGPIPE because we might get a pipe from the environment and we
    * don't want to trap if write() is used on it.
    */


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