class Honeybadger::Util::Stats
def memory
Experimental RBS support (using type sampling data from the type_fusion project).
def memory: () -> untyped
This signature was generated using 1 sample from 1 application.
def memory out = {} if HAS_MEM && (meminfo = run_meminfo) out[:total], out[:free], out[:buffers], out[:cached] = meminfo[0..4].map { |l| l =~ /^.*?\: +(.*?) kB$/; ($1.to_i / 1024.0).to_f } out[:free_total] = out[:free] + out[:buffers] + out[:cached] end out end