process

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stats

func Stats() statsReader

Stats returns a process resource stats reader for current process

Types

type CPUStats

type CPUStats struct {
	User   int
	System int
}

CPUStats represents CPU stats for a process

type LimitedResource

type LimitedResource struct {
	Current int
	Max     int
}

LimitedResource represents a limited resource stat

type MemStats

type MemStats struct {
	Total  int
	Rss    int
	Shared int
}

MemStats represents memory stats for a process

type ResourceLimits

type ResourceLimits struct {
	OpenFiles LimitedResource
}

ResourceLimits represents resource limits for a process

Jump to

Keyboard shortcuts

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