summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-01-21 11:50:12 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-01-21 11:50:12 -0500
commit05b98c3834f8fddb41d8893b5c4820dc9a72a229 (patch)
tree1c9763fa40995a86f2dd60a418712fc31a4fdbc9 /gdk/gdk.c
parent820c9403e3af75ab7120a08f17745dcf2542a2e8 (diff)
downloadgtk+-05b98c3834f8fddb41d8893b5c4820dc9a72a229.tar.gz
gdk: Make profiler support unconditional
We are still not providing samples unless debugging is enabled. That needs a bit more work.
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r--gdk/gdk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index c3c58b053b..ae456dc3e2 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -212,14 +212,14 @@ 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 ("GTK_TRACE_FD"))
- gdk_profiler_start (atoi (g_getenv ("GTK_TRACE_FD")));
- else if (g_getenv ("GTK_TRACE"))
- gdk_profiler_start (-1);
}
#endif /* G_ENABLE_DEBUG */
+ if (g_getenv ("GTK_TRACE_FD"))
+ gdk_profiler_start (atoi (g_getenv ("GTK_TRACE_FD")));
+ else if (g_getenv ("GTK_TRACE"))
+ gdk_profiler_start (-1);
+
#ifndef G_HAS_CONSTRUCTORS
stash_desktop_startup_notification_id ();
#endif