procmem | R Documentation |
Shows the amount of ram used by the current R process.
Sys.procmem(gcFirst = TRUE)
gcFirst |
logical; determines if garbage collection should be called before getting process memory usage. |
Sys.procmem()
returns the total memory usage of the current R
process, and (if supported), the maximum memory usage as well.
All of the C-level source code for these methods (in src/meminfo of the root directory of the memuse source tree) is licensed under the permissive 2-Clause BSD license.
Returns a list, whose values are platform dependent in addition to being modified by input arguments.
meminfo
## Not run: library(memuse) ### How much is being used? Sys.procmem() ### Use more. x <- rnorm(1e7) Sys.procmem() ### Use less. rm(x) gc(FALSE) Sys.procmem() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.