statm

package
v0.0.0-...-1206814 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2015 License: MIT, MIT Imports: 3 Imported by: 0

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)
	Shared   int   // number of pages that are shared(i.e. backed by a file)
	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

func New

func New(path string) (*Statm, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL