[Bf-blender-cvs] [6deb8042b2d] soc-2020-info-editor: CLOG: remove G.debug guard

Mateusz Grzeliński noreply at git.blender.org
Mon Jul 6 16:48:46 CEST 2020


Commit: 6deb8042b2dbdb9bffbb189cd96afd4fd88aaeef
Author: Mateusz Grzeliński
Date:   Mon Jul 6 16:01:06 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB6deb8042b2dbdb9bffbb189cd96afd4fd88aaeef

CLOG: remove G.debug guard

===================================================================

M	source/blender/blenkernel/BKE_global.h
M	source/blender/windowmanager/intern/wm_jobs.c
M	source/creator/creator_args.c

===================================================================

diff --git a/source/blender/blenkernel/BKE_global.h b/source/blender/blenkernel/BKE_global.h
index 61c270202f1..5875437842e 100644
--- a/source/blender/blenkernel/BKE_global.h
+++ b/source/blender/blenkernel/BKE_global.h
@@ -137,7 +137,7 @@ enum {
   G_DEBUG_EVENTS = (1 << 3),                /* input/window/screen events */
   G_DEBUG_HANDLERS = (1 << 4),              /* events handling */
   G_DEBUG_WM = (1 << 5),                    /* operator, undo */
-  G_DEBUG_JOBS = (1 << 6),                  /* jobs time profiling */
+  G_DEBUG_JOBS = (1 << 6),                  /* jobs time profiling, currently unused */
   G_DEBUG_FREESTYLE = (1 << 7),             /* freestyle messages */
   G_DEBUG_DEPSGRAPH_BUILD = (1 << 8),       /* depsgraph construction messages */
   G_DEBUG_DEPSGRAPH_EVAL = (1 << 9),        /* depsgraph evaluation messages */
diff --git a/source/blender/windowmanager/intern/wm_jobs.c b/source/blender/windowmanager/intern/wm_jobs.c
index e7116ffd637..300042bbeea 100644
--- a/source/blender/windowmanager/intern/wm_jobs.c
+++ b/source/blender/windowmanager/intern/wm_jobs.c
@@ -691,13 +691,11 @@ void wm_jobs_timer(wmWindowManager *wm, wmTimer *wt)
             CLOG_INFO(WM_LOG_JOB, 0, "job finished: %s", wm_job->name);
           }
 
-          if (G.debug & G_DEBUG_JOBS) {
-            CLOG_INFO(WM_LOG_JOB,
-                      0,
-                      "Job '%s' finished in %f seconds",
-                      wm_job->name,
-                      PIL_check_seconds_timer() - wm_job->start_time);
-          }
+          CLOG_INFO(WM_LOG_JOB,
+                    1,
+                    "Job '%s' finished in %f seconds",
+                    wm_job->name,
+                    PIL_check_seconds_timer() - wm_job->start_time);
 
           wm_job->running = false;
 
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index e6ef83579f7..b8e85332576 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -956,7 +956,7 @@ static const char arg_handle_debug_mode_generic_set_doc_xr_time[] =
 #  endif
 static const char arg_handle_debug_mode_generic_set_doc_jobs[] =
     "\n\t"
-    "Enable time profiling for background jobs.";
+    "Currently unused.";
 static const char arg_handle_debug_mode_generic_set_doc_gpu[] =
     "\n\t"
     "Enable GPU debug context and information for OpenGL 4.3+.";



More information about the Bf-blender-cvs mailing list