Description Usage Arguments Details Value Author(s) See Also Examples
These are utility functions for profiling memory used by objects and by R during the execution of an expression.
1 2 3 |
expr |
An expression to be evaluated. |
x |
An object, to identify how much memory it is using. |
reset |
Should the maximum memory used by R be reset? |
These are wrappers around the built-in gc
function. Note that they only count memory managed by R.
For profmem
, a vector giving [1] the amount of memory used at the start of execution, [2] the amount of memory used at the end of execution, [3] the maximum amount of memory used during execution, [4] the memory overhead as defined by the maximum memory used minus the starting memory use, and [5] the execution time in seconds.
For mem
, either a single numeric value giving the memory used by an object, or a vector providing a more readable version of the information returned by gc
(see its help page for details).
Kylie A. Bemis
gc
,
1 2 3 4 5 |
Loading required package: BiocParallel
Loading required package: Matrix
Loading required package: biglm
Loading required package: DBI
Attaching package: ‘matter’
The following object is masked from ‘package:biglm’:
biglm
The following objects are masked from ‘package:base’:
apply, scale
bytes
448
start (MB) finish (MB) max used (MB) overhead (MB) time (sec)
154.500 154.500 0.000 -154.500 0.001
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.