diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-12 19:01:02 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-12 19:01:02 +0300 |
commit | a752bc148e8704d594cf532074ecd3641061d0f2 (patch) | |
tree | 0de4d02a67e00fa8ada76c250e8a4da3c1d11ce8 /source/blender/depsgraph | |
parent | 815852e9503e27f98cd17f589e1a29af2319f936 (diff) |
Depsgraph: Make timing profile a command line option
This way we can add even more statistics, even one which will be print
to the console.
Would be nice if we also have verbosity level control.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc index 18ad4d15985..5f7bb4c3de5 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval.cc @@ -260,6 +260,7 @@ void deg_evaluate_on_refresh(EvaluationContext *eval_ctx, __func__, layers, graph->layers); + const bool do_time_debug = ((G.debug & G_DEBUG_DEPSGRAPH_TIME) != 0); /* Set time for the current graph evaluation context. */ TimeSourceDepsNode *time_src = graph->find_time_source(); eval_ctx->ctime = time_src->cfra; @@ -268,7 +269,7 @@ void deg_evaluate_on_refresh(EvaluationContext *eval_ctx, state.eval_ctx = eval_ctx; state.graph = graph; state.layers = layers; - state.do_stats = (G.debug_value != 0); + state.do_stats = do_time_debug; /* Set up task scheduler and pull for threaded evaluation. */ TaskScheduler *task_scheduler; bool need_free_scheduler; |