Documentation
¶
Index ¶
- Variables
- func CalcCPUPercent(ps []*process.Process) (float64, error)
- func CalcMemoryUsage(ps []*process.Process) (uint64, error)
- func CalcSelfAndAllChildrenCPUPercent() (float64, error)
- func CalcSelfAndAllChildrenMemoryUsage() (uint64, error)
- func CalcSelfCPUPercent() (float64, error)
- func CalcSelfMemoryUsage() (uint64, error)
- func Exists(pid int) bool
- func GetSelfAndAllChildrenProcess() ([]*process.Process, error)
- func Kill(pid int, sig syscall.Signal) error
- func KillGroup(pid int, sig syscall.Signal) error
- func ListAllChildrenProcess(p *process.Process) ([]*process.Process, error)
- func MustKill(ctx context.Context, pid int, singleSigWaitExitSec int, sig ...syscall.Signal) error
- func MustKillGroup(ctx context.Context, pid int, singleSigWaitExitSec int, sig ...syscall.Signal) error
- func WaitProcExit(ctx context.Context, pid int, interval time.Duration, count int) bool
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CalcMemoryUsage ¶ added in v0.11.40
func CalcSelfAndAllChildrenCPUPercent ¶ added in v0.11.40
func CalcSelfAndAllChildrenMemoryUsage ¶ added in v0.11.40
func CalcSelfCPUPercent ¶ added in v0.11.40
func CalcSelfMemoryUsage ¶ added in v0.11.40
func GetSelfAndAllChildrenProcess ¶ added in v0.11.40
func ListAllChildrenProcess ¶ added in v0.11.40
func MustKillGroup ¶ added in v0.11.21
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.