The memory reported here will likely differ from that reported by gc(), as this includes all memory from the R process, including any child processes and memory allocated outside R's garbage collector heap.

bench_process_memory()

Details

The OS APIs used are as follows

Windows

macOS

linux