Skip to content
Prev 325702 / 398503 Next

Determining the maximum memory usage of a function

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:

  
    
Message-ID: <CABG0rfue9j5pqA+BPaE3tbOtQOmPD7fC70eRXLC1YjPDmhUJxw@mail.gmail.com>
In-Reply-To: <53cf559ebff640a7a1e9f80751e26a2f@CHIHT4.ad.uillinois.edu>