struct
Sepia::MemoryLimiter::MemoryStats
- Sepia::MemoryLimiter::MemoryStats
- Struct
- Value
- Object
Overview
Memory statistics snapshot
Defined in:
sepia/memory_limiter.crConstructors
Instance Method Summary
- #available_bytes : UInt64
- #available_bytes=(available_bytes : UInt64)
- #timestamp : Time
- #timestamp=(timestamp : Time)
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #total_bytes : UInt64
- #total_bytes=(total_bytes : UInt64)
- #usage_percent : Float64
- #usage_percent=(usage_percent : Float64)
- #used_bytes : UInt64
- #used_bytes=(used_bytes : UInt64)
Constructor Detail
def self.new(total_bytes : UInt64, used_bytes : UInt64, available_bytes : UInt64, usage_percent : Float64, timestamp : Time = Time.utc)
#
Instance Method Detail
def to_s : String
#
Description copied from class Object
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.