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>2015-12-28 17:00:11 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-12-28 17:01:07 +0300
commit18ccc6f9604db5183c1eef9d4b898a32f2b6063d (patch)
tree72f73cdcd1150a66ccd9b013eec8c03af9bf5def /intern/cycles/render/svm.cpp
parentbb53c28704d279897f1ca8f3ee8061d07a1dd751 (diff)
Cycles: Log basic statistics of SVM compilation process
Diffstat (limited to 'intern/cycles/render/svm.cpp')
-rw-r--r--intern/cycles/render/svm.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/svm.cpp b/intern/cycles/render/svm.cpp
index b8a5b4d44e0..5b085d74857 100644
--- a/intern/cycles/render/svm.cpp
+++ b/intern/cycles/render/svm.cpp
@@ -763,6 +763,11 @@ void SVMCompiler::compile(Scene *scene,
global_svm_nodes[index*2 + 0].w = global_svm_nodes.size();
global_svm_nodes[index*2 + 1].w = global_svm_nodes.size();
global_svm_nodes.insert(global_svm_nodes.end(), svm_nodes.begin(), svm_nodes.end());
+
+ /* TODO(sergey): Consider making it more generic compile report. */
+ VLOG(1) << "Statistics for compiled shader " << shader->name << ":";
+ VLOG(1) << " Number of SVM nodes: " << global_svm_nodes.size();
+ VLOG(1) << " Maximum stack usage: " << max_stack_use;
}
CCL_NAMESPACE_END