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

Function AllThreads

thread.go:29–35  ·  view source on GitHub ↗

Provide access to /proc/PID/task/TID files, for thread specific values. Since such files have the same structure as /proc/PID/ ones, the data structures and the parsers for the latter may be reused. AllThreads returns a list of all currently available threads under /proc/PID.

(pid int)

Source from the content-addressed store, hash-verified

27
28// AllThreads returns a list of all currently available threads under /proc/PID.
29func AllThreads(pid int) (Procs, error) {
30 fs, err := NewFS(DefaultMountPoint)
31 if err != nil {
32 return Procs{}, err
33 }
34 return fs.AllThreads(pid)
35}
36
37// AllThreads returns a list of all currently available threads for PID.
38func (fs FS) AllThreads(pid int) (Procs, error) {

Callers

nothing calls this directly

Calls 2

AllThreadsMethod · 0.95
NewFSFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…