From: Carlos Garcia Campos Date: Sun, 27 Jul 2008 16:01:18 +0000 (+0000) Subject: Create the hash table also when profiling service is enabled for all X-Git-Tag: EVINCE_2_23_6~13 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=434533310fdab81f0fa3c7c96448c5b42a5737eb;p=evince.git Create the hash table also when profiling service is enabled for all 2008-07-27 Carlos Garcia Campos * libdocument/ev-debug.c: (profile_init): Create the hash table also when profiling service is enabled for all sections. svn path=/trunk/; revision=3087 --- diff --git a/ChangeLog b/ChangeLog index bfdd518f..efd08f17 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-27 Carlos Garcia Campos + + * libdocument/ev-debug.c: (profile_init): + + Create the hash table also when profiling service is enabled for + all sections. + 2008-07-27 Carlos Garcia Campos * libdocument/ev-debug.[ch]: (ev_profiler_start), diff --git a/libdocument/ev-debug.c b/libdocument/ev-debug.c index 911521bc..48cbf5dd 100644 --- a/libdocument/ev-debug.c +++ b/libdocument/ev-debug.c @@ -65,11 +65,10 @@ profile_init () 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,