80 lines
3.3 KiB
Go
80 lines
3.3 KiB
Go
// Code generated by "stringer -type=memStatID -output memStats_generated.go -linecomment"; DO NOT EDIT.
|
|
|
|
package mem
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[memTotal-0]
|
|
_ = x[memFree-1]
|
|
_ = x[memAvailable-2]
|
|
_ = x[memBuffered-3]
|
|
_ = x[memCached-4]
|
|
_ = x[swapCached-5]
|
|
_ = x[memActive-6]
|
|
_ = x[memInactive-7]
|
|
_ = x[memAnonActive-8]
|
|
_ = x[memAnonInactive-9]
|
|
_ = x[memFileActive-10]
|
|
_ = x[memFileInactive-11]
|
|
_ = x[memUnevictable-12]
|
|
_ = x[memLocked-13]
|
|
_ = x[swapTotal-14]
|
|
_ = x[swapFree-15]
|
|
_ = x[zswapTotal-16]
|
|
_ = x[zswapUsed-17]
|
|
_ = x[memDirty-18]
|
|
_ = x[memWriteback-19]
|
|
_ = x[memAnonPages-20]
|
|
_ = x[memMapped-21]
|
|
_ = x[memShmem-22]
|
|
_ = x[memKReclaimable-23]
|
|
_ = x[memSlab-24]
|
|
_ = x[memSReclaimable-25]
|
|
_ = x[memSUnreclaim-26]
|
|
_ = x[memKernelStack-27]
|
|
_ = x[memPageTables-28]
|
|
_ = x[memSecPageTables-29]
|
|
_ = x[memNFSUnstable-30]
|
|
_ = x[memBounce-31]
|
|
_ = x[memWritebackTmp-32]
|
|
_ = x[memCommitLimit-33]
|
|
_ = x[memCommittedAS-34]
|
|
_ = x[vmallocTotal-35]
|
|
_ = x[vmallocUsed-36]
|
|
_ = x[vmallocChunk-37]
|
|
_ = x[memPercpu-38]
|
|
_ = x[memCorrupted-39]
|
|
_ = x[memAnonHugePages-40]
|
|
_ = x[memShmemHugePages-41]
|
|
_ = x[memShmemPmdMapped-42]
|
|
_ = x[memFileHugePages-43]
|
|
_ = x[memFilePmdMapped-44]
|
|
_ = x[memCmaTotal-45]
|
|
_ = x[memCmaFree-46]
|
|
_ = x[memUnaccepted-47]
|
|
_ = x[memHugePagesTotal-48]
|
|
_ = x[memHugePagesFree-49]
|
|
_ = x[memHugePagesRsvd-50]
|
|
_ = x[memHugePagesSurp-51]
|
|
_ = x[memHugepagesize-52]
|
|
_ = x[memHugetlb-53]
|
|
_ = x[memDirectMap4k-54]
|
|
_ = x[memDirectMap2M-55]
|
|
_ = x[memDirectMap1G-56]
|
|
}
|
|
|
|
const _memStatID_name = "Memory TotalMemory FreeMemory AvailableMemory BufferedMemory CachedSwap CachedMemory ActiveMemory InactiveAnonymous Memory ActiveAnonymous Memory InactiveFile Active MemoryFile Inactive MemoryUnevictable MemoryLocked MemorySwap TotalSwap FreeZswap TotalZswapped UsedDirty MemoryWriteback MemoryAnonymous Page Tables Memorymmap Memoryshmem MemoryKernel Memory ReclaimableKernel Slab MemoryKernel Slab Memory ReclaimableKernel Slab Memory UnreclaimableKernel Stack MemoryPage Tables MemorySecure Page Tables MemoryNFS Pages MemoryBlock Device Bounce Buffer MemoryFUSE Temporary Writeback Buffer MemoryCommit Limit TotalCommit Limit AllocatedVmalloc Total MemoryVmalloc Used MemoryVmalloc Largest Unused ChunkPercpu MemoryMemory CorruptedAnonymouse Huge Pages Memoryshmem Huge Pages Memoryshmem User Space Huge Pages MemoryFile Huge Pages MemoryFile User Space Huge Pages MemoryContiguous Memory Allocator Pages TotalContiguous Memory Allocator Pages FreeUnaccepted MemoryHuge Pages TotalHuge Pages FreeHuge Pages ReservedHuge Pages SurplusHuge Page SizeHuge Page TLBKernel 4kB PagesKernel 2MB PagesKernel 1GB Pages"
|
|
|
|
var _memStatID_index = [...]uint16{0, 12, 23, 39, 54, 67, 78, 91, 106, 129, 154, 172, 192, 210, 223, 233, 242, 253, 266, 278, 294, 322, 333, 345, 370, 388, 418, 450, 469, 487, 512, 528, 561, 599, 617, 639, 659, 678, 706, 719, 735, 763, 786, 820, 842, 875, 914, 952, 969, 985, 1000, 1019, 1037, 1051, 1064, 1080, 1096, 1112}
|
|
|
|
func (i memStatID) String() string {
|
|
if i < 0 || i >= memStatID(len(_memStatID_index)-1) {
|
|
return "memStatID(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _memStatID_name[_memStatID_index[i]:_memStatID_index[i+1]]
|
|
}
|