Documentation ¶
Overview ¶
statm.Statm describes data in /proc/<pid>/statm.
Use statm.New() to create a new stat.Statm object from data in a path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Statm ¶
type Statm struct { Size int64 // total program size (pages)(same as VmSize in status) Resident int64 //size of memory portions (pages)(same as VmRSS in status) Trs int // number of pages that are 'code'(not including libs; broken, includes data segment) Lrs int //number of pages of library(always 0 on 2.6) Drs int //number of pages of data/stack(including libs; broken, includes library text) Dt int //number of dirty pages(always 0 on 2.6) }
Abstraction for /proc/<pid>/stat
Click to show internal directories.
Click to hide internal directories.