[Bf-blender-cvs] [672f2ef] master: Cycles: Log OSL texture system statistics after finishing the render

Sergey Sharybin noreply at git.blender.org
Fri Dec 18 17:51:04 CET 2015


Commit: 672f2efbe68ff6e75b0994358fa0269fc7105f43
Author: Sergey Sharybin
Date:   Fri Dec 18 21:50:10 2015 +0500
Branches: master
https://developer.blender.org/rB672f2efbe68ff6e75b0994358fa0269fc7105f43

Cycles: Log OSL texture system statistics after finishing the render

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

M	intern/cycles/kernel/osl/osl_services.cpp

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

diff --git a/intern/cycles/kernel/osl/osl_services.cpp b/intern/cycles/kernel/osl/osl_services.cpp
index db53f2d..9ac8a3e 100644
--- a/intern/cycles/kernel/osl/osl_services.cpp
+++ b/intern/cycles/kernel/osl/osl_services.cpp
@@ -35,6 +35,7 @@
 #include "osl_shader.h"
 
 #include "util_foreach.h"
+#include "util_logging.h"
 #include "util_string.h"
 
 #include "kernel_compat_cpu.h"
@@ -124,6 +125,8 @@ OSLRenderServices::OSLRenderServices()
 
 OSLRenderServices::~OSLRenderServices()
 {
+	VLOG(2) << "OSL texture system stats:\n"
+	        << osl_ts->getstats();
 #ifdef WITH_PTEX
 	ptex_cache->release();
 #endif




More information about the Bf-blender-cvs mailing list