diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-29 18:32:25 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-29 18:32:25 +0400 |
commit | 344ca17247accd2848081e69eab00ab7aac4a0ae (patch) | |
tree | 15de05fa03e3b8965fee704f3c38ce497a055bac /source/creator | |
parent | 70f50ed8fa9262e355aa468daf17eb7d9d3d348f (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.c | 1 |
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); |