process

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessInfo

type ProcessInfo struct {
	// CpuPercent is the average CPU percent of the latest 5 seconds (100% = 1 core). It is 0 in the first 5 seconds.
	CpuPercent float64
	// CpuThrottledPercent is the percent of CFS periods in the latest 5 seconds in which the cgroup was throttled
	// by its CPU limit. 0 = not throttled. It is always 0 without a CPU limit, or when cpu.stat can not be read.
	CpuThrottledPercent float64
	// CpuThrottledMillis is the total time (milliseconds) the cgroup was throttled in the latest 5 seconds.
	// The time of all threads is added, so it can be larger than 5000.
	CpuThrottledMillis int64
	MemorySize         uint64
	Threads            int
	Goroutines         int
}

func GetProcessInfo

func GetProcessInfo() ProcessInfo

Jump to

Keyboard shortcuts

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