Description Usage Arguments Value Examples
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.
1 | mem.usage(pid = Sys.getpid())
|
pid |
Process ID (default is the current process id). |
The resident memory usage in KB.
1 2 3 4 5 | ## Not run:
mem.usage()
# [1] 37268
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.