Canaryd.MemoryMonitor (canaryd v0.4.0)

Copy Markdown View Source

Pure confirmation and cooldown policy for idle, high-memory applications.

A candidate must remain over the RSS threshold and below the CPU threshold while the user is idle for three consecutive full check rounds. Only applications marked actionable by Canaryd.MemoryProcesses can be closed.

Summary

Functions

candidate?(app)

close_cooldown()

cpu_threshold()

default_state()

evaluate(state, apps, idle_duration, now)

Evaluates one scan and returns {new_state, actions}.

memory_threshold_mb()

minimum_idle()

pending_apps(state)

required_observations()

reset_observations(state)

Clears incomplete observations after an unavailable process scan.