[gtk] Profiler: drop the public api



commit 879a0c118dc708c0b5ae3912ae51550305df5c27
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 8 16:57:34 2019 +0000

    Profiler: drop the public api

 gdk/gdkprofiler.c | 32 --------------------------------
 gdk/gdkprofiler.h | 32 --------------------------------
 2 files changed, 64 deletions(-)
---
diff --git a/gdk/gdkprofiler.c b/gdk/gdkprofiler.c
index aed2557de6..15a54ad05f 100644
--- a/gdk/gdkprofiler.c
+++ b/gdk/gdkprofiler.c
@@ -27,7 +27,6 @@
 #endif
 
 #include "gdkversionmacros.h"
-#include "gdkprofiler.h"
 #include "gdkprofilerprivate.h"
 #include "gdkframeclockprivate.h"
 
@@ -229,34 +228,3 @@ gdk_profiler_set_int_counter (guint  id,
 }
 
 #endif /* G_OS_WIN32 */
-
-/**
- * gdk_profiler_set_mark:
- * @duration: the duration of the mark, or 0
- * @name: the name of the mark (up to 40 characters)
- * @message: (optional): the message of the mark
- *
- * Insert a mark into the profiling data if we
- * are currently profiling.
- * This information will show up in tools like sysprof
- * or GNOME Builder when viewing the profiling data.
- * It can be used to mark interesting regions in the
- * captured data.
- *
- * If the duration is non-zero, the mark applies to
- * the timespan from @duration microseconds in the
- * past to the current time. To mark just a point in
- * time, pass 0 as duration.
- *
- * @name should be a short string, and @message is optional.
- */
-void
-gdk_profiler_set_mark (guint64     duration,
-                       const char *name,
-                       const char *message)
-{
-  guint64 start;
-
-  start = g_get_monotonic_time () - duration;
-  gdk_profiler_add_mark (start, duration, name, message);
-}


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