blender/intern/cycles/util
Sergey Sharybin a445e49186 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).
2015-02-15 02:01:48 +05:00
..
CMakeLists.txt Cycles: Implement guarded allocator for STL classes 2015-02-15 02:01:48 +05:00
util_algorithm.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_aligned_malloc.cpp Cycles: Replace own aligned allocator with system one 2015-02-15 02:01:48 +05:00
util_aligned_malloc.h Cycles: Replace own aligned allocator with system one 2015-02-15 02:01:48 +05:00
util_args.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_atomic.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_boundbox.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_cache.cpp Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_cache.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_color.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_debug.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_foreach.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_function.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_guarded_allocator.cpp Cycles: Implement guarded allocator for STL classes 2015-02-15 02:01:48 +05:00
util_guarded_allocator.h Cycles: Implement guarded allocator for STL classes 2015-02-15 02:01:48 +05:00
util_half.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_hash.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_image.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_list.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_logging.cpp Cycles: Be ready for gflags namespace auto-detect 2015-01-01 01:31:08 +05:00
util_logging.h Cycles: Fully support WITH_CYCLES_LOGGING option 2015-01-01 01:31:07 +05:00
util_map.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_math_fast.h Cycles: Some more constants fixes for fast math 2015-02-06 15:40:07 +05:00
util_math.h Cycles: Some more constants fixes for fast math 2015-02-06 15:40:07 +05:00
util_md5.cpp Cleanup: cycles whitespace 2014-11-08 13:37:42 +01:00
util_md5.h Cycles OSL: refactoring and fixes 2012-11-03 14:32:13 +00:00
util_opengl.h Cycles: Post-reintegration tweaks to ensure things do compile 2015-01-01 01:31:08 +05:00
util_optimization.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_param.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_path.cpp Cycles: Allow paths customization via environment variables 2015-02-02 02:02:10 +05:00
util_path.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_progress.h Cycles: Avoid crash in statistics when canceling BVH build 2015-01-19 13:39:35 +05:00
util_set.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_simd.cpp Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_simd.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_sseb.h Cleanup: Comment block for sse helpers. 2015-02-14 20:57:21 +01:00
util_ssef.h Cleanup: Comment block for sse helpers. 2015-02-14 20:57:21 +01:00
util_ssei.h Cleanup: Comment block for sse helpers. 2015-02-14 20:57:21 +01:00
util_stats.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_string.cpp Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_string.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_system.cpp Cleanup: Remove unused Cycles cpuid code. 2015-02-11 11:28:42 +01:00
util_system.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_task.cpp Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_task.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_thread.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_time.cpp Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_time.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_transform.cpp Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_transform.h Fix T43120: Cycles mapping node rotation order is different from viewport 2015-01-22 14:12:22 +05:00
util_types.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_vector.h Cycles: Implement guarded allocator for STL classes 2015-02-15 02:01:48 +05:00
util_view.cpp Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_view.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
util_xml.h Cycles: Fix compilation error when OIIO is compiled with external PugiXML parser 2015-01-01 01:31:07 +05:00