Skip to content

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

License

Notifications You must be signed in to change notification settings

fearful-symmetry/taskstats

 
 

Repository files navigation

taskstats Test Status Go Reference 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. MIT Licensed.

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%