[gtk/tracing: 1330/1335] Add a way to start the profiler
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/tracing: 1330/1335] Add a way to start the profiler
- Date: Wed, 6 Feb 2019 14:18:41 +0000 (UTC)
commit 83e049c98014a485df1b5cd678173773bfaa1df1
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 19 19:42:11 2018 +0100
Add a way to start the profiler
Start profiling if GDK_TRACE is set in the environment.
gdk/gdk.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 6954ef772e..de4bbd3dbf 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -26,6 +26,7 @@
#include "gdkversionmacros.h"
+#include "gdkprofiler.h"
#include "gdkinternals.h"
#include "gdkintl.h"
@@ -216,6 +217,9 @@ gdk_pre_parse (void)
_gdk_debug_flags = g_parse_debug_string (debug_string,
(GDebugKey *) gdk_debug_keys,
G_N_ELEMENTS (gdk_debug_keys));
+
+ if (g_getenv ("GDK_TRACE"))
+ gdk_profiler_start (-1);
}
#endif /* G_ENABLE_DEBUG */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]