Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
Unit string
Total int64
Free int64
Cached int64
Swap struct {
Total int64
Free int64
Used int64
}
}
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html
Look to see how memory changes over time.
How many malloc allocations are done.
How quickly does the
Documentation for Linux Memory
http://superuser.com/questions/521551/cat-proc-meminfo-what-do-all-those-numbers-mean
type ProcessMemory ¶
type ProcessMemory struct {
Swap struct {
Size int64 `json:",omitempty"`
SizeUnit string `json:",omitempty"`
} `json:",omitempty"`
// contains filtered or unexported fields
}
func NewProcess ¶
func NewProcess(proc procfs.Proc) *ProcessMemory
Click to show internal directories.
Click to hide internal directories.