invoke

abstract operator fun invoke(): MemoryUsage(source)

The process.memoryUsage() method iterate over each page to gather informations about memory usage which can be slow depending on the program memory allocations.