Blender V4.3
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 20 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 31 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 29 of file BLI_memory_counter.hh.

Referenced by blender::memory_counter::MemoryCounter::add(), blender::memory_cache::get_base(), blender::tests::TEST(), and blender::memory_cache::try_enforce_limit().


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