[Bf-blender-cvs] [18ccc6f] master: Cycles: Log basic statistics of SVM compilation process

Sergey Sharybin noreply at git.blender.org
Mon Dec 28 15:01:38 CET 2015


Commit: 18ccc6f9604db5183c1eef9d4b898a32f2b6063d
Author: Sergey Sharybin
Date:   Mon Dec 28 19:00:11 2015 +0500
Branches: master
https://developer.blender.org/rB18ccc6f9604db5183c1eef9d4b898a32f2b6063d

Cycles: Log basic statistics of SVM compilation process

===================================================================

M	intern/cycles/render/svm.cpp

===================================================================

diff --git a/intern/cycles/render/svm.cpp b/intern/cycles/render/svm.cpp
index b8a5b4d..5b085d7 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




More information about the Bf-blender-cvs mailing list