yes, am using vista OS.
the problem is that i need to collect percentage consommation information. concerning memory information, i used "sigar_mem_get(sigar, &mem)", and then "mem.used_percent", but i can't have cpu percentage use. i thing combining cpu_cur and cpu_max using "sigar_resource_limit_get" function so that [cpu_used_percent = (cpu_cur*100)/cpu_max] .
unfortunatelly my idea don't work in windows plateform as you mention.
so have you any other proposition to get cpu percentage use?
thanks in advance.
|