Description Usage Arguments Details Value Author(s)
Check memory usage and trigger an event if it exceeds some threshold.
1 | check.memory(events, max.mb, logger = NULL, event.name = "BloatedMemory")
|
events |
EventRegistry object |
max.mb |
If the total "used" memory (Ncells + Vcells) is at least this much (in Mb) then trigger the next handler. |
logger |
log4r object. If non-NULL then memory usage is printed there with |
event.name |
Name of the event to trigger. Default: "BloatedMemory".
It is passed |
Call gc()
to check memory,
possibly print the result to STDERR, then possibly
call the next handler you supply if too much memory is being
used.
Nothing
Brad Friedman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.