mem_change: Determine change in memory from running code

Description Usage Arguments Value Examples

Description

Determine change in memory from running code

Usage

1
mem_change(code)

Arguments

code

Code to evaluate.

Value

Change in memory (in megabytes) before and after running code.

Examples

1
2
3
4
# Need about 4 mb to store 1 million integers
mem_change(x <- 1:1e6)
# We get that memory back when we delete it
mem_change(rm(x))


Search within the pryr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.