diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-12-28 17:00:11 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-12-28 17:01:07 +0300 |
commit | 18ccc6f9604db5183c1eef9d4b898a32f2b6063d (patch) | |
tree | 72f73cdcd1150a66ccd9b013eec8c03af9bf5def /intern | |
parent | bb53c28704d279897f1ca8f3ee8061d07a1dd751 (diff) |
Cycles: Log basic statistics of SVM compilation process
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/svm.cpp | 5 |
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 |