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_multi.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_multi.cpp')
-rw-r--r--intern/cycles/device/device_multi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/device/device_multi.cpp b/intern/cycles/device/device_multi.cpp
index 9aac86daa1d..8da489a0ab5 100644
--- a/intern/cycles/device/device_multi.cpp
+++ b/intern/cycles/device/device_multi.cpp
@@ -25,6 +25,7 @@
#include "util_foreach.h"
#include "util_list.h"
+#include "util_logging.h"
#include "util_map.h"
#include "util_time.h"
@@ -170,6 +171,8 @@ public:
void tex_alloc(const char *name, device_memory& mem, InterpolationType interpolation, bool periodic)
{
+ VLOG(1) << "Texture allocate: " << name << ", " << mem.memory_size() << " bytes.";
+
foreach(SubDevice& sub, devices) {
mem.device_pointer = 0;
sub.device->tex_alloc(name, mem, interpolation, periodic);