mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
gio: Add GMemoryMonitor to monitor for low-memory
Add a memory monitor object, with D-Bus and Portal based implementations. The D-Bus implementation uses the Linux-only low-memory-monitor Freedesktop project. Low Memory Monitor D-Bus API: https://hadess.pages.freedesktop.org/low-memory-monitor/ Android API: https://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int) iOS API: https://developer.apple.com/documentation/uikit/app_and_environment/managing_your_app_s_life_cycle/responding_to_memory_warnings Win32 API: https://docs.microsoft.com/en-us/dotnet/api/microsoft.win32.systemevents.lowmemory?view=netframework-4.8 Tizen API: https://samsung.github.io/TizenFX/master/api/Tizen.Applications.EventManager.SystemEvents.LowMemory.html
This commit is contained in:
committed by
Philip Withnall
parent
57409724c6
commit
cd6612dfb7
@@ -4170,6 +4170,23 @@ G_DBUS_OBJECT_MANAGER_SERVER_GET_CLASS
|
||||
GDBusObjectManagerServerPrivate
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gmemorymonitor</FILE>
|
||||
<TITLE>GMemoryMonitor</TITLE>
|
||||
GMemoryMonitor
|
||||
GMemoryMonitorFlags
|
||||
GMemoryMonitorInterface
|
||||
GMemoryMonitorWarningLevel
|
||||
G_MEMORY_MONITOR_EXTENSION_POINT_NAME
|
||||
g_memory_monitor_dup_default
|
||||
<SUBSECTION Standard>
|
||||
g_memory_monitor_get_type
|
||||
G_TYPE_MEMORY_MONITOR
|
||||
G_MEMORY_MONITOR
|
||||
G_IS_MEMORY_MONITOR
|
||||
G_MEMORY_MONITOR_GET_INTERFACE
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
<FILE>gnetworkmonitor</FILE>
|
||||
<TITLE>GNetworkMonitor</TITLE>
|
||||
|
Reference in New Issue
Block a user