You can use gopsutil <https://github.com/shirou/gopsutil>

On Sunday, March 5, 2017 at 10:55:29 AM UTC+5:30 dharma...@gmail.com wrote:

> On linux, you can read in /proc/stat for cpu specific and aggregated data. 
> Other info in /proc/stat can get you info on each running process. Google 
> for procfs and /proc/stat... 
>
>
> On Tuesday, September 25, 2012 at 11:05:12 AM UTC-4, ISockGo wrote:
>>
>> Hi,
>>
>>      I am almost done with a chat server in Go, it's going good I guess. 
>> Now I am required to do some manipulation at runtime according to CPU and 
>> memory usage. Can one suggest me the apis in Go to check the CPU and memory 
>> usage of system at the run time and right way to use it. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/523a56ad-9ab0-4442-bc57-a8ed6e68ed02n%40googlegroups.com.

Reply via email to