gopsutil
gopsutil copied to clipboard
[process] optimize the process.Percent function
In fact, calculate process's cpu percent doesn't need host's cpu num. This commit may be helpful for performance, although runtime. NumCPU just reads a variable.