powered by
Measure memory that an expression used.
bench_memory(expr)
A tibble with two columns
The total amount of memory allocated
The raw memory allocations as parsed by profmem::readRprofmem()
profmem::readRprofmem()
A expression to be measured.
if (capabilities("profmem")) { bench_memory(1 + 1:10000) }
Run the code above in your browser using DataLab