MemoryMonitorWarningLevel
Description:
[ CCode ( cprefix = "G_MEMORY_MONITOR_WARNING_LEVEL_" , type_id = "g_memory_monitor_warning_level_get_type ()" ) ]
[ Version ( since = "2.64" ) ]
public enum MemoryMonitorWarningLevel
Memory availability warning levels.
Note that because new values might be added, it is recommended that applications check MemoryMonitorWarningLevel
as ranges, for example:
if (warning_level > G_MEMORY_MONITOR_WARNING_LEVEL_LOW)
drop_caches ();
Content:
Enum values:
- CRITICAL - The system will
soon start terminating processes to reclaim memory, including background processes.
- LOW - Memory on the device is
low, processes should free up unneeded resources (for example, in-memory caches) so they can be used elsewhere.
- MEDIUM - Same as
G_MEMORY_MONITOR_WARNING_LEVEL_LOW
but the device has even less free memory, so processes should try harder to free up
unneeded resources.