Profiler: drop the public api
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 May 2019 16:57:34 +0000 (16:57 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 May 2019 16:57:34 +0000 (16:57 +0000)
gdk/gdkprofiler.c
gdk/gdkprofiler.h [deleted file]

index aed2557de68aa9da3708b00fa3f99f9da8f3212a..15a54ad05fd3d5d75ebf901aec216a28f5132405 100644 (file)
@@ -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);
-}
diff --git a/gdk/gdkprofiler.h b/gdk/gdkprofiler.h
deleted file mode 100644 (file)
index 70c283d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/* GDK - The GIMP Drawing Kit
- * Copyright (C) 2018 Red Hat, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.         See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __GDK_PROFILER_H__
-#define __GDK_PROFILER_H__
-
-#include <gdk/gdkversionmacros.h>
-
-G_BEGIN_DECLS
-
-GDK_AVAILABLE_IN_ALL
-void     gdk_profiler_set_mark (guint64     duration,
-                                const char *name,
-                                const char *message);
-
-G_END_DECLS
-
-#endif  /* __GDK_PROFILER_H__ */