Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-07-27 16:01:18 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-07-27 16:01:18 (GMT)
commit434533310fdab81f0fa3c7c96448c5b42a5737eb (patch)
tree639f8ae9ccdb7779882bbb6a4af3e510c9f171f8
parent597433bc874ff2cf5cb9f9de4e053db47837e042 (diff)
Create the hash table also when profiling service is enabled for all
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
-rw-r--r--ChangeLog7
-rw-r--r--libdocument/ev-debug.c9
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index bfdd518..efd08f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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),
(ev_profiler_stop):
* shell/ev-jobs.c: (ev_job_finished), (ev_job_links_run),
diff --git a/libdocument/ev-debug.c b/libdocument/ev-debug.c
index 911521b..48cbf5d 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,