[gtk/tracing] Remove duplicate counter definition



commit 720e1725ae0d6966a853089ffe2431e2231077a4
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 17 20:05:47 2018 +0100

    Remove duplicate counter definition
    
    This was moved to the frame clock side.

 gdk/gdkprofiler.c | 16 ----------------
 1 file changed, 16 deletions(-)
---
diff --git a/gdk/gdkprofiler.c b/gdk/gdkprofiler.c
index 069f7096d9..825e11f5f7 100644
--- a/gdk/gdkprofiler.c
+++ b/gdk/gdkprofiler.c
@@ -29,7 +29,6 @@
 
 static SpCaptureWriter *writer = NULL;
 static gboolean running = FALSE;
-static guint fps_counter = 0;
 
 static void
 profiler_stop (void)
@@ -55,21 +54,6 @@ gdk_profiler_start (void)
   writer = sp_capture_writer_new (filename, 16*1024);
   g_free (filename);
 
-  fps_counter = (guint) sp_capture_writer_request_counter (writer, 1);
-  counter.id = fps_counter;
-  counter.type = SP_CAPTURE_COUNTER_DOUBLE;
-  counter.value.vdbl = 0;
-  g_strlcpy (counter.category, "gtk", sizeof counter.category);
-  g_strlcpy (counter.name, "fps", sizeof counter.name);
-  g_strlcpy (counter.description, "Frames per second", sizeof counter.name);
-
-  sp_capture_writer_define_counters (writer,
-                                     SP_CAPTURE_CURRENT_TIME,
-                                     -1,
-                                     getpid (),
-                                     &counter,
-                                     1);
-
   atexit (profiler_stop);
 }
 


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