Blender V5.0
blender::memory_counter::MemoryCount Class Reference

#include <BLI_memory_counter.hh>

Public Member Functions

void reset ()

Public Attributes

int64_t total_bytes = 0
Set< WeakImplicitSharingPtrhandled_shared_data

Detailed Description

Definition at line 18 of file BLI_memory_counter.hh.

Member Function Documentation

◆ reset()

void blender::memory_counter::MemoryCount::reset ( )

Member Data Documentation

◆ handled_shared_data

Set<WeakImplicitSharingPtr> blender::memory_counter::MemoryCount::handled_shared_data

Definition at line 29 of file BLI_memory_counter.hh.

◆ total_bytes

int64_t blender::memory_counter::MemoryCount::total_bytes = 0

Get the total number of counted bytes.

Note
This is only a rough estimate of the actual used memory. Often, not every little bit of memory is counted, so this is generally a lower bound. The actual memory usage should not be significantly higher though.

Definition at line 27 of file BLI_memory_counter.hh.

Referenced by blender::ed::sculpt_paint::undo::calculate_node_geometry_allocated_size(), blender::memory_cache::get_base(), blender::memory_cache::remove_if(), blender::tests::TEST(), and blender::memory_cache::try_enforce_limit().


The documentation for this class was generated from the following files: