if (g_getenv ("EV_PROFILE") != NULL) {
/* enable all profiling */
ev_profile = ~EV_NO_PROFILE;
- return;
- }
-
- if (g_getenv ("EV_PROFILE_JOBS") != NULL)
- ev_profile |= EV_PROFILE_JOBS;
+ } else {
+ if (g_getenv ("EV_PROFILE_JOBS") != NULL)
+ ev_profile |= EV_PROFILE_JOBS;
+ }
if (ev_profile) {
timers = g_hash_table_new_full (g_str_hash,
}
void
-ev_debug_init ()
+_ev_debug_init ()
{
debug_init ();
profile_init ();
}
void
-ev_debug_shutdown ()
+_ev_debug_shutdown ()
{
if (timers) {
g_hash_table_destroy (timers);