class Pretty::MemInfo
- Pretty::MemInfo
- Reference
- Object
Defined in:
pretty/mem_info.cr:17pretty/mem_info.cr:97
Constant Summary
-
SHORTCUTS =
{"total" => "MemTotal", "free" => "MemFree", "available" => "MemAvailable", "max" => "VmHWM", "mem_total" => "MemTotal", "mem_free" => "MemFree", "mem_available" => "MemAvailable", "buffers" => "Buffers", "cached" => "Cached", "swap_cached" => "SwapCached", "active" => "Active", "inactive" => "Inactive", "active_anon" => "Active(anon)", "inactive_anon" => "Inactive(anon)", "active_file" => "Active(file)", "inactive_file" => "Inactive(file)", "unevictable" => "Unevictable", "mlocked" => "Mlocked", "swap_total" => "SwapTotal", "swap_free" => "SwapFree", "dirty" => "Dirty", "writeback" => "Writeback", "anon_pages" => "AnonPages", "mapped" => "Mapped", "shmem" => "Shmem", "slab" => "Slab", "s_reclaimable" => "SReclaimable", "s_unreclaim" => "SUnreclaim", "kernel_stack" => "KernelStack", "page_tables" => "PageTables", "nfs_unstable" => "NFS_Unstable", "bounce" => "Bounce", "writeback_tmp" => "WritebackTmp", "commit_limit" => "CommitLimit", "committed_as" => "Committed_AS", "vmalloc_total" => "VmallocTotal", "vmalloc_used" => "VmallocUsed", "vmalloc_chunk" => "VmallocChunk", "hardware_corrupted" => "HardwareCorrupted", "anon_huge_pages" => "AnonHugePages", "shmem_huge_pages" => "ShmemHugePages", "shmem_pmd_mapped" => "ShmemPmdMapped", "cma_total" => "CmaTotal", "cma_free" => "CmaFree", "hugepagesize" => "Hugepagesize", "direct_map4k" => "DirectMap4k", "direct_map2m" => "DirectMap2M", "direct_map1g" => "DirectMap1G"}
Constructors
- .host : MemInfo
- .load(path : String) : MemInfo
- .new(values : Hash(String, Int64))
- .parse(buffer : String) : MemInfo
Class Method Summary
Instance Method Summary
- #[](name) : UsedMemory
-
#[]?(name) : UsedMemory | Nil
MemTotal: 11588840 kB
- #active
- #active?
- #active_anon
- #active_anon?
- #active_file
- #active_file?
- #anon_huge_pages
- #anon_huge_pages?
- #anon_pages
- #anon_pages?
- #available
- #available?
- #bounce
- #bounce?
- #buffers
- #buffers?
- #cached
- #cached?
- #cma_free
- #cma_free?
- #cma_total
- #cma_total?
- #commit_limit
- #commit_limit?
- #committed_as
- #committed_as?
- #direct_map1g
- #direct_map1g?
- #direct_map2m
- #direct_map2m?
- #direct_map4k
- #direct_map4k?
- #dirty
- #dirty?
- #free
- #free?
- #hardware_corrupted
- #hardware_corrupted?
- #hugepagesize
- #hugepagesize?
- #inactive
- #inactive?
- #inactive_anon
- #inactive_anon?
- #inactive_file
- #inactive_file?
- #kernel_stack
- #kernel_stack?
- #keys(*args, **options)
- #keys(*args, **options, &)
- #mapped
- #mapped?
- #max
- #max?
- #mem_available
- #mem_available?
- #mem_free
- #mem_free?
- #mem_total
- #mem_total?
- #mlocked
- #mlocked?
- #nfs_unstable
- #nfs_unstable?
- #page_tables
- #page_tables?
- #s_reclaimable
- #s_reclaimable?
- #s_unreclaim
- #s_unreclaim?
- #shmem
- #shmem?
- #shmem_huge_pages
- #shmem_huge_pages?
- #shmem_pmd_mapped
- #shmem_pmd_mapped?
- #slab
- #slab?
- #swap_cached
- #swap_cached?
- #swap_free
- #swap_free?
- #swap_total
- #swap_total?
- #total
- #total?
- #unevictable
- #unevictable?
- #vmalloc_chunk
- #vmalloc_chunk?
- #vmalloc_total
- #vmalloc_total?
- #vmalloc_used
- #vmalloc_used?
- #writeback
- #writeback?
- #writeback_tmp
- #writeback_tmp?