diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-21 11:50:12 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-21 11:50:12 -0500 |
commit | 05b98c3834f8fddb41d8893b5c4820dc9a72a229 (patch) | |
tree | 1c9763fa40995a86f2dd60a418712fc31a4fdbc9 /gdk/gdk.c | |
parent | 820c9403e3af75ab7120a08f17745dcf2542a2e8 (diff) | |
download | gtk+-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |