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
path: root/intern
diff options
context:
space:
mode:
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/app/cycles_standalone.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/cycles/app/cycles_standalone.cpp b/intern/cycles/app/cycles_standalone.cpp
index ed512aa2330..87ab84eb209 100644
--- a/intern/cycles/app/cycles_standalone.cpp
+++ b/intern/cycles/app/cycles_standalone.cpp
@@ -369,7 +369,7 @@ static void options_parse(int argc, const char **argv)
/* parse options */
ArgParse ap;
- bool help = false, debug = false, version = false;
+ bool help = false, profile = false, debug = false, version = false;
int verbosity = 1;
ap.options("Usage: cycles [options] file.xml",
@@ -411,6 +411,9 @@ static void options_parse(int argc, const char **argv)
"--list-devices",
&list,
"List information about all available devices",
+ "--profile",
+ &profile,
+ "Enable profile logging",
#ifdef WITH_CYCLES_LOGGING
"--debug",
&debug,
@@ -460,6 +463,8 @@ static void options_parse(int argc, const char **argv)
exit(EXIT_SUCCESS);
}
+ options.session_params.use_profiling = profile;
+
if (ssname == "osl")
options.scene_params.shadingsystem = SHADINGSYSTEM_OSL;
else if (ssname == "svm")