MCPcopy Create free account
hub / github.com/prometheus/procfs / NewProc

Method NewProc

proc.go:92–94  ·  view source on GitHub ↗

NewProc returns a process for the given pid. Deprecated: Use fs.Proc() instead.

(pid int)

Source from the content-addressed store, hash-verified

90//
91// Deprecated: Use fs.Proc() instead.
92func (fs FS) NewProc(pid int) (Proc, error) {
93 return fs.Proc(pid)
94}
95
96// Proc returns a process for the given pid.
97func (fs FS) Proc(pid int) (Proc, error) {

Callers

nothing calls this directly

Calls 1

ProcMethod · 0.95

Tested by

no test coverage detected