#include <MemoryManagerStatistic.h>
◆ PrintLevel
Enumerator |
---|
All | Statistics for all used devices are printed.
|
Unbalanced | Only devices with unbalanced counts are printed. This is typically an indicator for memory leaks.
|
None | No statistics are printed.
|
◆ MemoryManagerStatistic()
◆ ~MemoryManagerStatistic()
open3d::core::MemoryManagerStatistic::~MemoryManagerStatistic |
( |
| ) |
|
◆ CountFree()
void open3d::core::MemoryManagerStatistic::CountFree |
( |
void * |
ptr, |
|
|
const Device & |
device |
|
) |
| |
Adds the given deallocations to the statistics. Counts for previously recorded allocations after a reset are ignored for consistency.
◆ CountMalloc()
void open3d::core::MemoryManagerStatistic::CountMalloc |
( |
void * |
ptr, |
|
|
size_t |
byte_size, |
|
|
const Device & |
device |
|
) |
| |
Adds the given allocation to the statistics.
◆ GetInstance()
◆ HasLeaks()
bool open3d::core::MemoryManagerStatistic::HasLeaks |
( |
| ) |
const |
Returns true if any recorded device has unbalanced counts, false otherwise.
◆ operator=()
◆ Print()
void open3d::core::MemoryManagerStatistic::Print |
( |
| ) |
const |
Prints statistics for all recorded devices depending on the print level.
◆ Reset()
void open3d::core::MemoryManagerStatistic::Reset |
( |
| ) |
|
◆ SetPrintAtMallocFree()
void open3d::core::MemoryManagerStatistic::SetPrintAtMallocFree |
( |
bool |
print | ) |
|
Enables or disables printing at each malloc and free.
◆ SetPrintAtProgramEnd()
void open3d::core::MemoryManagerStatistic::SetPrintAtProgramEnd |
( |
bool |
print | ) |
|
Enables or disables printing at the program end. Printing at the program end additionally overrides the exit code to EXIT_FAILURE in the presence of leaks.
◆ SetPrintLevel()
void open3d::core::MemoryManagerStatistic::SetPrintLevel |
( |
PrintLevel |
level | ) |
|
Sets the level of provided information for printing.
The documentation for this class was generated from the following files: