Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUQuota ¶
CPUQuota returns the CPU quota applied with the CPU cgroup controller. It is a result of `cpu.cfs_quota_us / cpu.cfs_period_us`. If the value of `cpu.cfs_quota_us` was not set (-1), the method returns `(-1, nil)`.
func NewCGroupsForCurrentProcess ¶
NewCGroupsForCurrentProcess returns a new *CGroups instance for the current process.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.