memon package

Submodules

memon.memon module

This module implements functions and classes to monitor the memory status.

class memon.memon.MemoryMonitor(interval=0.1, memory_limit=50)[source]

Bases: Thread

clear_recording_history()[source]

Clear recording history.

close()[source]

Stop memory monitoring.

property current_usage

Return currently measured memory in percent.

is_running()[source]

Check if memory monitor is running.

Returns:

status – Status of memory monitor.

Return type:

bool

is_shutdown()[source]

Check if memory monitor is shutdown.

Returns:

status – Status of memory monitor.

Return type:

bool

memory_available()[source]

Get memory availability.

Returns:

status – If memory is available return is True, otherwise False.

Return type:

bool

reset_max_memory()[source]

Reset maximum memory.

run()[source]

Run memory monitor.

start_recording()[source]

Start memory recording.

stop()[source]

Clear memory monitoring.

stop_recording()[source]

Stop memory recording.

Module contents