Skip to content

Determining the maximum memory usage of a function

1 message · Jonathan Greenberg

#
Jim:

Thanks, but I'm looking for something that can be used somewhat
automatically -- the function in question would be user-provided and
passed to my "chunking" algorithm, so in this case it would be the
end-user (not me) who would have to embed these -- would
Rprof(memory.profiling=TRUE)
# my function
Rprof(NULL)
... and then taking the max of the tseries output be a reasonable
approach?  If so, which of the three outputs (vsize.small vsize.large
  nodes) would be best compared against the available memory?

Cheers!

--j
On Thu, Jun 20, 2013 at 10:07 AM, jim holtman <jholtman at gmail.com> wrote: