class BakedFileSystem::Loader::Stats

Defined in:

loader/stats.cr

Constant Summary

DEFAULT_MAX_SIZE = 52428800_i64
DEFAULT_WARN_THRESHOLD = 10485760_i64
LARGE_FILE_WARN_THRESHOLD = 1048576_i64

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_file(path : String, uncompressed_size : Int64, compressed_size : Int64) #

[View source]
def compression_ratio : Float64 #

[View source]
def file_count : Int32 #

[View source]
def file_count=(file_count : Int32) #

[View source]
def large_files : Array(Tuple(String, Int64, Int64)) #

[View source]
def large_files=(large_files : Array(Tuple(String, Int64, Int64))) #

[View source]
def report_to(io : IO, max_size_override : Int64 | Nil = nil) #

[View source]
def total_compressed : Int64 #

[View source]
def total_compressed=(total_compressed : Int64) #

[View source]
def total_uncompressed : Int64 #

[View source]
def total_uncompressed=(total_uncompressed : Int64) #

[View source]