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
Johan Walles 13e00c76e4 Use OS calls rather than exec() to get memory statistics
Before this change we used to exec() various binaries to find out memory
information.

While this worked, it was awfully slow.

And if somebody would want to compute how many percent of available memory all
PIDs on the system uses, that would take almost ten seconds on my laptop with
the previous implementation.

This implementation fares a lot better, and is smaller.
9 years ago
..
mem.go change package name. 11 years ago
mem_darwin.go Use OS calls rather than exec() to get memory statistics 9 years ago
mem_darwin_test.go Use OS calls rather than exec() to get memory statistics 9 years ago
mem_freebsd.go format go program with go 1.5.2 "go fmt" 10 years ago
mem_linux.go common: rename package common to internal/common. Add ENV helper funcs. 10 years ago
mem_test.go change package name. 11 years ago
mem_windows.go common[all]: add internal 10 years ago