Update to latest procfs library (#1611)
Bump to v0.0.10 procfs library. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
dcfd610433
commit
14df2a1a1a
17 changed files with 849 additions and 250 deletions
5
vendor/github.com/prometheus/procfs/proc_status.go
generated
vendored
5
vendor/github.com/prometheus/procfs/proc_status.go
generated
vendored
|
|
@ -71,6 +71,9 @@ type ProcStatus struct {
|
|||
VoluntaryCtxtSwitches uint64
|
||||
// Number of involuntary context switches.
|
||||
NonVoluntaryCtxtSwitches uint64
|
||||
|
||||
// UIDs of the process (Real, effective, saved set, and filesystem UIDs (GIDs))
|
||||
UIDs [4]string
|
||||
}
|
||||
|
||||
// NewStatus returns the current status information of the process.
|
||||
|
|
@ -114,6 +117,8 @@ func (s *ProcStatus) fillStatus(k string, vString string, vUint uint64, vUintByt
|
|||
s.TGID = int(vUint)
|
||||
case "Name":
|
||||
s.Name = vString
|
||||
case "Uid":
|
||||
copy(s.UIDs[:], strings.Split(vString, "\t"))
|
||||
case "VmPeak":
|
||||
s.VmPeak = vUintBytes
|
||||
case "VmSize":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue