MemoryPressureSettings


Object Hierarchy:

WebKit.MemoryPressureSettings WebKit.MemoryPressureSettings WebKit.MemoryPressureSettings

Description:

[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "webkit_memory_pressure_settings_get_type ()" ) ]
[ Compact ]
[ Version ( since = "2.34" ) ]
public class MemoryPressureSettings

A boxed type representing the settings for the memory pressure handler

MemoryPressureSettings is a boxed type that can be used to provide some custom settings to control how the memory pressure situations are handled by the different processes.

The memory pressure system implemented inside the different process will try to keep the memory usage under the defined memory limit. In order to do that, it will check the used memory with a user defined frequency and decide whether it should try to release memory. The thresholds passed will define how urgent is to release that memory.

Take into account that badly defined parameters can greatly reduce the performance of the engine. For example, setting memory limit too low with a fast poll interval can cause the process to constantly be trying to release memory.

A MemoryPressureSettings can be passed to a WebContext constructor, and the settings will be applied to all the web processes created by that context.

A MemoryPressureSettings can be passed to webkit_website_data_manager_set_memory_pressure_settings, and the settings will be applied to all the network processes created after that call by any instance of WebsiteDataManager.


Namespace: WebKit
Package: webkitgtk-6.0

Content:

Creation methods:

Methods: