From: slopixi <sig...@hy...> - 2010-11-17 07:16:08
|
Hi, I'll continue this thread, I'm having problems with getting really small process cpu usages. My program is running on HPUX and does give me accurate data for process usages that are high. I have problem that I can't get usages that are < 1%. They are just 0.0%. I know the problem getting in loop etc. Because I'm getting data for higher usages. My problem is not crashing type, but its really annoying. Way I get the data: class extends SigarCommandBase in class there is loop that gets data ProcCpu procCPU = this.proxy.getProcCpu( pid); procCPU.getPercent()*100; There is 2s between data reading. I'll be really greateful for any suggestion. |