gi-webkit2-4.0.28: WebKit2 bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2.Structs.MemoryPressureSettings

Description

No description available in the introspection data.

Synopsis

Exported types

newtype MemoryPressureSettings Source #

Memory-managed wrapper type.

Methods

copy

memoryPressureSettingsCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> m MemoryPressureSettings

Returns: A copy of of the passed MemoryPressureSettings.

Make a copy of settings.

Since: 2.34

free

getConservativeThreshold

memoryPressureSettingsGetConservativeThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> m Double

Returns: the value of the the conservative threshold inside settings.

No description available in the introspection data.

Since: 2.34

getKillThreshold

memoryPressureSettingsGetKillThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> m Double

Returns: the value of the the kill threshold inside settings.

No description available in the introspection data.

Since: 2.34

getMemoryLimit

memoryPressureSettingsGetMemoryLimit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> m Word32

Returns: the value in MB of the memory limit inside settings.

No description available in the introspection data.

Since: 2.34

getPollInterval

memoryPressureSettingsGetPollInterval Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> m Double

Returns: the value in seconds of the the poll interval inside settings.

No description available in the introspection data.

Since: 2.34

getStrictThreshold

memoryPressureSettingsGetStrictThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> m Double

Returns: the value of the the strict threshold inside settings.

No description available in the introspection data.

Since: 2.34

new

memoryPressureSettingsNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m MemoryPressureSettings

Returns: A new MemoryPressureSettings instance filled with the default values.

Create a new MemoryPressureSettings with the default values.

Since: 2.34

setConservativeThreshold

memoryPressureSettingsSetConservativeThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> Double

value: fraction of the memory limit where the conservative policy starts working.

-> m () 

Sets value as the fraction of the defined memory limit where the conservative policy starts working. This policy will try to reduce the memory footprint by releasing non critical memory.

The threshold must be bigger than 0 and smaller than 1, and it must be smaller than the strict threshold defined in settings. The default value is 0.33.

Since: 2.34

setKillThreshold

memoryPressureSettingsSetKillThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> Double

value: fraction of the memory limit where the process will be killed because of excessive memory usage.

-> m () 

Sets value as the fraction of the defined memory limit where the process will be killed.

The threshold must be a value bigger or equal to 0. A value of 0 means that the process is never killed. If the threshold is not 0, then it must be bigger than the strict threshold defined in settings. The threshold can also have values bigger than 1. The default value is 0.

Since: 2.34

setMemoryLimit

memoryPressureSettingsSetMemoryLimit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> Word32

memoryLimit: amount of memory (in MB) that the process is allowed to use.

-> m () 

Sets memoryLimit the memory limit value to settings.

The default value is the system's RAM size with a maximum of 3GB.

Since: 2.34

setPollInterval

memoryPressureSettingsSetPollInterval Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> Double

value: period (in seconds) between memory usage measurements.

-> m () 

Sets value as the poll interval used by settings.

The poll interval value must be bigger than 0. The default value is 30 seconds.

Since: 2.34

setStrictThreshold

memoryPressureSettingsSetStrictThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> MemoryPressureSettings

settings: a MemoryPressureSettings

-> Double

value: fraction of the memory limit where the strict policy starts working.

-> m () 

Sets value as the fraction of the defined memory limit where the strict policy starts working. This policy will try to reduce the memory footprint by releasing critical memory.

The threshold must be bigger than 0 and smaller than 1. Also, it must be bigger than the conservative threshold defined in settings, and smaller than the kill threshold if the latter is not 0. The default value is 0.5.

Since: 2.34