#include <mach_debug/zone_info.h>
mach_debug/zone_info.h 14 typedefs · 10 macros · 7 structs
#define ZONE_NAME_MAX_LEN 80 #define MACH_ZONE_NAME_MAX_LEN 80 size 64, align 8
uint64_t mzi_count count of elements in use uint64_t mzi_cur_size current memory utilization uint64_t mzi_max_size how large can this zone grow uint64_t mzi_elem_size size of an element uint64_t mzi_alloc_size size used for more memory uint64_t mzi_sum_size sum of all allocs (life of zone) uint64_t mzi_exhaustible merely return if empty? uint64_t mzi_collectable garbage collect elements? and how much?
The lowest bit of mzi_collectable indicates whether or not the zone
is collectable by zone_gc(). The higher bits contain the size in bytes
that can be collected.
#define GET_MZI_COLLECTABLE_BYTES(val) ((val) >> 1) #define GET_MZI_COLLECTABLE_FLAG(val) ((val) & 1) #define SET_MZI_COLLECTABLE_BYTES(val, size) (val) = ((val) & 1) | ((size) << 1) #define SET_MZI_COLLECTABLE_FLAG(val, flag) (val) = (flag) ? ((val) | 1) : (val) size 88, align 8
uint64_t tzi_count count of elements in use uint64_t tzi_cur_size current memory utilization uint64_t tzi_max_size how large can this zone grow uint64_t tzi_elem_size size of an element uint64_t tzi_alloc_size size used for more memory uint64_t tzi_sum_size sum of all allocs (life of zone) uint64_t tzi_exhaustible merely return if empty? uint64_t tzi_collectable garbage collect elements? uint64_t tzi_caller_acct charged to caller (or kernel) uint64_t tzi_task_alloc sum of all allocs by this task uint64_t tzi_task_free sum of all frees by this task
#define MACH_MEMORY_INFO_NAME_MAX_LEN 80 size 176, align 8
uint64_t flags uint64_t site uint64_t size uint64_t free uint64_t largest uint64_t collectable_bytes uint64_t mapped uint64_t peak uint16_t tag uint16_t zone uint16_t[2] _resvA uint64_t[3] _resv char[80] name
#define MAX_ZTRACE_DEPTH 15 size 128, align 8
uint32_t ref_count no. of active references on the record uint32_t operation_type operation type (alloc/free) uint64_t[15] bt backtrace
Generated 2026-09-08 from the headers of one specific machine (macOS 26.4.1, SDK 26.4, arm64) — not official documentation. About & caveats