Measure memory that an expression used.

bench_memory(expr)

Arguments

expr

A expression to be measured.

Value

A tibble with two columns

Examples

if (capabilities("profmem")) { bench_memory(1 + 1:10000) }