bind.memory.checker: bind.

Description Usage Arguments Details Value Author(s) See Also

View source: R/memory.R

Description

Bind the memory checker to the FinishAnalysis event

Usage

1
2
bind.memory.checker(app, max.mb, app.event = "FinishAnalysis",
  memory.event = "BloatedMemory")

Arguments

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".

Details

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.)

Value

Nothing of note.

Author(s)

Brad Friedman

See Also

check.memory, autosignal.on.bloated.memory


AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.