v / vlib / runtime / used_memory_default.c.v
8 lines · 7 sloc · 307 bytes · 54e8ed5ec5be385beea5a968205d314ad3695ee2
Raw
1module runtime
2
3// used_memory retrieves the current physical memory usage of the process.
4// Note: implementation available only on FreeBSD, macOS, Linux, OpenBSD and
5// Windows. Otherwise, returns 'used_memory: not implemented'.
6pub fn used_memory() !u64 {
7 return error('used_memory: not implemented')
8}
9