#include <libkern/c++/OSCPPDebug.h>

libkern/c++/OSCPPDebug.h Kernel.framework

4 variables · 1 macro · 1 function

macroOSCPP_DEBUG

#define OSCPP_DEBUG 

variabledebug_malloc_size

extern size_t debug_malloc_size

variabledebug_iomalloc_size

extern size_t debug_iomalloc_size

variabledebug_container_malloc_size

extern size_t debug_container_malloc_size

variabledebug_ivars_size

extern size_t debug_ivars_size

functionOSPrintMemory

void OSPrintMemory(void)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu libkern/c++/OSCPPDebug.cpp
Prints libkern/IOKit memory-debugging statistics: per-class instance counts via OSMetaClass::printInstanceCounts, followed by the accumulated debug counters for instance-variable kalloc, malloc, container kalloc, and IOMalloc allocations (debug_ivars_size, debug_malloc_size, debug_container_malloc_size, debug_iomalloc_size), written with IOLog. The counters are maintained only when OSALLOCDEBUG accounting is compiled in.