bench_memory | R Documentation |
Measure memory that an expression used.
bench_memory(expr)
expr |
A expression to be measured. |
A tibble with two columns
The total amount of memory allocated
The raw memory allocations as parsed by profmem::readRprofmem()
if (capabilities("profmem")) {
bench_memory(1 + 1:10000)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.