mem.usage: Measure the resident memory usage of a process.

Description Usage Arguments Value Examples

View source: R/mem.usage.R

Description

Returns the memory usage in KB of a process with the specified process id. By default, returns the memory usage of the current R process. This can be used to measure and log the memory usage of the R process during script execution.

Usage

1

Arguments

pid

Process ID (default is the current process id).

Value

The resident memory usage in KB.

Examples

1
2
3
4
5
## Not run: 
mem.usage()
# [1] 37268

## End(Not run)

ssh.utils documentation built on May 29, 2017, 9:29 p.m.