]> www.fi.muni.cz Git - evince.git/commitdiff
Create the hash table also when profiling service is enabled for all
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 27 Jul 2008 16:01:18 +0000 (16:01 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 27 Jul 2008 16:01:18 +0000 (16:01 +0000)
2008-07-27  Carlos Garcia Campos  <carlosgc@gnome.org>

* libdocument/ev-debug.c: (profile_init):

Create the hash table also when profiling service is enabled for
all sections.

svn path=/trunk/; revision=3087

ChangeLog
libdocument/ev-debug.c

index bfdd518f74caf5f01c4bd60689339d33b20720b0..efd08f1764e9641cbec220d83041baa81eda7e77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-27  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * 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  <carlosgc@gnome.org>
 
        * libdocument/ev-debug.[ch]: (ev_profiler_start),
index 911521bcc986387a473a27e821d38d81a93e9a5f..48cbf5dda5418b6232e99d6c744ea075014aa7f3 100644 (file)
@@ -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,