Blender Git Commit Log
Git Commits -> Revision a445e49
Revision a445e49 by Sergey Sharybin (master) February 14, 2015, 21:01 (GMT) |
Cycles: Implement guarded allocator for STL classes The commit implements a guarded allocator which can be used by STL classes such as vectors, maps and so on. This allocator will keep track of current and peak memory usage which then can be queried. New code for allocator is only active when building Cycles with debug flag (WITH_CYCLES_DEBUG) and doesn't distort regular builds too much. Additionally now we're using own subclass of std::vector which allows us to implement shrink_to_fit() method which would ensure capacity of the vector is as big as it should be (without this making vector smaller will still use all previous memory allocated). |
Commit Details:
Full Hash: a445e491860c0853c398dbb4662c4c21cdb3696d
Parent Commit: 01067fe
Lines Changed: +173, -1
2 Added Paths:
/intern/cycles/util/util_guarded_allocator.cpp (+49, -0) (View)
/intern/cycles/util/util_guarded_allocator.h (+64, -0) (View)
/intern/cycles/util/util_guarded_allocator.h (+64, -0) (View)