set_memory_pressure_settings


Description:

public static void set_memory_pressure_settings (MemoryPressureSettings settings)

Sets settings as the MemoryPressureSettings.

Sets settings as the MemoryPressureSettings to be used by the network process created by any instance of NetworkSession after this function is called.

Be sure to call this function before creating any NetworkSession.

The periodic check for used memory is disabled by default on network processes. This will be enabled only if custom settings have been set using this function. After that, in order to remove the custom settings and disable the periodic check, this function must be called passing null as the value of settings.

Parameters:

settings

a WebKitMemoryPressureSettings.