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-04-10 13:36:56 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-04-10 13:37:49 +0300
commit2f5dd83759d2db8480706c3a472bdf0f7db4f725 (patch)
tree89b0efa8979e5e372a57ce534fb95dd1662a5cf4 /intern/cycles/device/device_cpu.cpp
parent1e71270f77a4e1c7c84b871e5378c659d61edb3e (diff)
Cycles: Add some statistics logging
Covers number of entities in the scene (objects, meshes etc), also reports sizes of textures being allocated.
Diffstat (limited to 'intern/cycles/device/device_cpu.cpp')
-rw-r--r--intern/cycles/device/device_cpu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/device/device_cpu.cpp b/intern/cycles/device/device_cpu.cpp
index 148e52e2c86..63735df88ab 100644
--- a/intern/cycles/device/device_cpu.cpp
+++ b/intern/cycles/device/device_cpu.cpp
@@ -38,6 +38,7 @@
#include "util_debug.h"
#include "util_foreach.h"
#include "util_function.h"
+#include "util_logging.h"
#include "util_opengl.h"
#include "util_progress.h"
#include "util_system.h"
@@ -115,6 +116,7 @@ public:
void tex_alloc(const char *name, device_memory& mem, InterpolationType interpolation, bool /*periodic*/)
{
+ VLOG(1) << "Texture allocate: " << name << ", " << mem.memory_size() << " bytes.";
kernel_tex_copy(&kernel_globals, name, mem.data_pointer, mem.data_width, mem.data_height, mem.data_depth, interpolation);
mem.device_pointer = mem.data_pointer;
mem.device_size = mem.memory_size();