gdk: Make profiler support unconditional

We are still not providing samples unless debugging is enabled.
That needs a bit more work.
This commit is contained in:
Matthias Clasen 2020-01-21 11:50:12 -05:00
parent 820c9403e3
commit 05b98c3834

View File

@ -212,13 +212,13 @@ gdk_pre_parse (void)
_gdk_debug_flags = g_parse_debug_string (debug_string,
(GDebugKey *) gdk_debug_keys,
G_N_ELEMENTS (gdk_debug_keys));
}
#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);
}
#endif /* G_ENABLE_DEBUG */
#ifndef G_HAS_CONSTRUCTORS
stash_desktop_startup_notification_id ();