procinfo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(pid int) (name, usr string)

Resolve maps a PID to its process name (from /proc/<pid>/comm) and owning username. On any failure — missing pid, unreadable comm, unstattable dir — it returns empty strings and never errors, keeping per-process GPU usage best-effort. When uid lookup fails or the environment is numeric-only, the User falls back to the decimal uid string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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