struct

Sepia::MemoryLimiter::MemoryStats

Inherits Struct < Value < Object

Memory statistics snapshot

Constructors

new(total_bytes : UInt64, used_bytes : UInt64, available_bytes : UInt64, usage_percent : Float64, timestamp : Time = Time.utc)
Source

Instance methods

available_bytes
Source
available_bytes=(available_bytes : UInt64)
Source
timestamp
Source
timestamp=(timestamp : Time)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
total_bytes
Source
total_bytes=(total_bytes : UInt64)
Source
usage_percent
Source
usage_percent=(usage_percent : Float64)
Source
used_bytes
Source
used_bytes=(used_bytes : UInt64)
Source