pub fn get_memory_stats() -> MemoryStats
Retrieves active memory statistics for checking leaks and diagnostics.