struct Sepia::MemoryLimiter::MemoryStats

Overview

Memory statistics snapshot

Defined in:

sepia/memory_limiter.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def available_bytes : UInt64 #

[View source]
def available_bytes=(available_bytes : UInt64) #

[View source]
def timestamp : Time #

[View source]
def timestamp=(timestamp : Time) #

[View source]
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.


[View source]
def total_bytes : UInt64 #

[View source]
def total_bytes=(total_bytes : UInt64) #

[View source]
def usage_percent : Float64 #

[View source]
def usage_percent=(usage_percent : Float64) #

[View source]
def used_bytes : UInt64 #

[View source]
def used_bytes=(used_bytes : UInt64) #

[View source]