memoryUseThisSession | R Documentation |
system("ps")
This will give a slightly different estimate than pryr::mem_used
, which uses gc()
internally.
The purpose of this function is to allow continuous monitoring, external to the R session.
Normally, this is run in a different session.
This will only work if the user has specified before running the spades
call,
set the interval, in seconds, that ps
is run.
E.g., options("spades.memoryUseInterval" = 0.5)
, will assess memory use every 0.5 seconds.
The default is 0
, meaning no interval, "off".
memoryUseThisSession(thisPid)
memoryUse(sim, max = TRUE)
thisPid |
Numeric or integer, the |
sim |
A completed |
max |
Logical. If TRUE, then it the return value will be summarized by
module/event, showing the maximum memory used. If |
estimated memory use in MiB
data.table
summarizing the estimated memory use (in MiB) for each event type,
for each module, during the simulation.
The suggested future
and future.callr
packages must be available.
The vignette("iv-modules")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.