user80603
user80603

Reputation: 31

In R, how can I know the maximum amount of memory that a function uses during execution?

Or is there a way to calculate the maximum amount of memory from a memory profiling method like profvis?

Upvotes: 2

Views: 616

Answers (1)

R has a built-in profiler Rprof capable for tracking this:

Rprof(filename = "Rprof.out", memory.profiling = TRUE)

Upvotes: 2

Related Questions