evince r3087 - in trunk: . libdocument



Author: carlosgc
Date: Sun Jul 27 16:01:18 2008
New Revision: 3087
URL: http://svn.gnome.org/viewvc/evince?rev=3087&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/libdocument/ev-debug.c

Modified: trunk/libdocument/ev-debug.c
==============================================================================
--- trunk/libdocument/ev-debug.c	(original)
+++ trunk/libdocument/ev-debug.c	Sun Jul 27 16:01:18 2008
@@ -65,11 +65,10 @@
 	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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]