procps

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package procps reads the Linux /proc filesystem to produce a process table equivalent to `ps aux`. The parsing is pure stdlib and OS-independent — List defaults to "/proc" (only meaningful on Linux), but listFrom accepts any procfs-shaped root so the logic is testable on any host with fixtures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	PID         int32
	PPID        int32
	User        string
	State       string
	CPUPercent  float64
	MemPercent  float64
	VSZKB       uint64
	RSSKB       uint64
	TTY         string
	StartTimeMS int64
	Command     string
}

Process mirrors one row of `ps aux`.

func List

func List() ([]Process, error)

List returns the live process table from the host's /proc.

Jump to

Keyboard shortcuts

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