Package taskstats provides access to Linux's taskstats interface, for sending per-task and per-process statistics from the kernel to userspace. MIT Licensed.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
LICENSE.md
README.md
client.go
client_linux.go
client_linux_integration_test.go
client_linux_test.go
client_others.go
stats.go
stats_linux.go

README.md

taskstats Build Status GoDoc Go Report Card

Package taskstats provides access to Linux's taskstats interface, for sending per-task, per-process, and cgroup statistics from the kernel to userspace.

For more information on taskstats, please see:

Notes

  • When instrumenting Go programs, use either the taskstats.Self() or taskstats.TGID() method. Using the PID() method on multithreaded programs, including Go programs, will produce inaccurate results.

  • Access to taskstats requires that the application have at least CAP_NET_RAW capability (see capabilities(7)). Otherwise, the application must be run as root.

  • If running the application in a container (e.g. via Docker), it cannot be run in a network namespace -- usually this means that host networking must be used.

MIT Licensed.