Is it possible for a Haiku process to query its resident memory size? On Linux you could do this by parsing
/proc/self/statm. Practically every UNIX has its own API for that purpose.
Alternatively, I could work with the amount of memory allocated via
malloc() if it had any efficient introspection functions. Unfortunately, at least
malloc.h doesn’t seem to declare any.
malloc() implemented on Haiku anyway?
mmap() or some BeOS-derived mechanism?