mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Profiler: drop the public api
This commit is contained in:
parent
cb51699098
commit
879a0c118d
@ -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);
|
||||
}
|
||||
|
@ -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__ */
|
Loading…
Reference in New Issue
Block a user