View Source Bonfire.Common.MemoryMonitor (Bonfire v0.9.10-classic-beta.169)

This module implements a GenServer that monitors the memory usage of a process. It periodically checks the memory consumption.

Summary

Functions

Returns a specification to start this module under a supervisor.

Handles incoming messages to the GenServer.

Starts the MemoryMonitor process linked to the caller process with given options.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

get_memory_usage(name, pid \\ self())

View Source

Handles incoming messages to the GenServer.

  • :check - Performs memory usage checks on the monitored process
Link to this function

start_link(name, pid_to_monitor \\ self())

View Source

Starts the MemoryMonitor process linked to the caller process with given options.