Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-29 18:32:25 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-29 18:32:25 +0400
commit344ca17247accd2848081e69eab00ab7aac4a0ae (patch)
tree15de05fa03e3b8965fee704f3c38ce497a055bac /source/creator
parent70f50ed8fa9262e355aa468daf17eb7d9d3d348f (diff)
Added command line option "--debug-jobs"
This option enables time profiling of background jobs, namely it's measuring run time of the job and prints it to the console.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 713c9220fd7..8c9cc45a050 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -1144,6 +1144,7 @@ static void setupArguments(bContext *C, bArgs *ba, SYS_SystemHandle *syshandle)
#endif
BLI_argsAdd(ba, 1, NULL, "--debug-value", "<value>\n\tSet debug value of <value> on startup\n", set_debug_value, NULL);
+ BLI_argsAdd(ba, 1, NULL, "--debug-jobs", "\n\tEnable time profiling for background jobs.", debug_mode_generic, (void *)G_DEBUG_JOBS);
BLI_argsAdd(ba, 1, NULL, "--verbose", "<verbose>\n\tSet logging verbosity level.", set_verbosity, NULL);