You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/mem
Steven Hartland d968f63e51 Eliminate call to swapinfo on FreeBSD
Improve performance by eliminating the fork out to swapinfo on FreeBSD which also helps prevent crashes / hangs due to the outstanding fork crash bug:
golang/go#15658

This also fixes the value reported by SwapMemory and SwapMemoryWithContext on FreeBSD which previously only included the first swap device and also reported the values in terms of 1K blocks instead of bytes.
7 years ago
..
mem.go Add 'SwapCached' to the VirtualMemoryStat informations on linux 8 years ago
mem_darwin.go Add WithContext functions. 7 years ago
mem_darwin_cgo.go Add WithContext functions. 7 years ago
mem_darwin_nocgo.go Add WithContext functions. 7 years ago
mem_darwin_test.go add Timeout to invoke command and use common.Invoke refs: #201 9 years ago
mem_fallback.go Add WithContext functions. 7 years ago
mem_freebsd.go Eliminate call to swapinfo on FreeBSD 7 years ago
mem_linux.go Add WithContext functions. 7 years ago
mem_openbsd.go Add WithContext functions. 7 years ago
mem_openbsd_amd64.go run go fmt ./... 8 years ago
mem_solaris.go Add WithContext functions. 7 years ago
mem_test.go mem: Skip TestVirtual_memory on Solaris 8 years ago
mem_windows.go Add WithContext functions. 7 years ago
types_openbsd.go run go fmt ./... 8 years ago