Blender V4.3
blender::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 ( )

Definition at line 39 of file memory_counter.cc.

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.


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