Description Usage Arguments Details Value Author(s) See Also
Bind the memory checker to the FinishAnalysis event
1 2 | bind.memory.checker(app, max.mb, app.event = "FinishAnalysis",
memory.event = "BloatedMemory")
|
app |
AnalysisPageRApacheApp |
max.mb |
Memory threshold for triggering BloatedMemory, in Megabytes. Required. |
app.event |
Name of existing event on which the new memory check listener should be registered. Default: "FinishAnalysis". |
memory.event |
Name of event to fire in case of memory usage above threshold. Default: "BloatedMemory". |
You supply an AnalysisPageRApacheApp. It also has a FinishAnalysis
event. I add a new event (by default called BloatedMemory), and
also a listener for FinishAnalysis, which calls check.memory
each time FinishAnalysis
is triggered.
(this will then trigger BloatedMemory if memory usage is above threshold).
Although the BloatedMemory event would now be triggered, unless a listener
is attached to *it* nothing special will happen.
(See autosignal.on.bloated.memory
for this.)
Nothing of note.
Brad Friedman
check.memory
, autosignal.on.bloated.memory
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.