tl;dr Where is there documentation for the implementation of mach_task_basic_info
on iOS?
There is a lot of conflicting information out there, a lot of micro kernels that use a structure named like this.
https://developer.apple.com/documentation/kernel/mach_task_basic_info_data_t lists the fields (and gives types) as:
policy: int
resident_size: uint64_t
resident_size_max
suspend_count
system_time
user_time
virtual_size
What are the relative meanings of the *_size variables? resident_size
is that the number of bytes used? Number of pages? Is it a total for all processes? The calling process?
And so on.