Module memory

Module memory 

Source
Expand description

Memory management utilities for high-performance ML workloads

This module provides memory management utilities including custom allocators, memory pools, leak detection, memory-mapped file utilities, bounds checking, and safe memory management helpers.

Structsยง

AllocationInfo
AllocationStats
Allocation statistics
GcHelper
Garbage collection helper for reference counting
LeakDetector
Memory leak detector
MemoryAlignment
Memory alignment utilities
MemoryMappedFile
Memory-mapped file utilities
MemoryMonitor
Memory usage monitor
MemoryPool
Memory pool for efficient allocation of fixed-size objects
MemoryValidator
Memory validation utilities
SafeBuffer
Safe buffer with automatic bounds checking and buffer overflow protection
SafePtr
Memory-safe smart pointer with reference counting and automatic cleanup
SafeVec
Safe wrapper around vectors with bounds checking
StackGuard
Stack-based memory guard for automatic cleanup
TrackingAllocator
Custom allocator that tracks memory usage