add cpu.wait metric

This commit is contained in:
Doug MacEachern committed 2004-11-22 01:51:34 +00:00
1 parent 921a4ce41c
commit 46ba56bc17
12 files changed
+27 -10

No files matched your search

+1
View File
@@ -203,6 +203,7 @@ namespace Hyperic.Sigar {
public readonly ulong Sys;
private readonly ulong NA_Nice;
public readonly ulong Idle;
private readonly ulong NA_Wait;
public readonly ulong Total;
[DllImport(Sigar.LIBSIGAR)]
+5
View File
@@ -194,6 +194,11 @@ my %classes = (
desc => 'Total system cpu idle time',
plat => '*'
},
{
name => 'wait', type => 'Long',
desc => 'Total system cpu io wait time',
plat => 'ALHS'
},
{
name => 'total', type => 'Long',
desc => 'Total system cpu time',
@@ -21,6 +21,9 @@ public class TestCpu extends SigarTestCase {
traceln("Idle=" + cpu.getIdle());
assertTrue(cpu.getIdle() >= 0);
traceln("Wait=" + cpu.getWait());
assertTrue(cpu.getWait() >= 0);
traceln("Total=" + cpu.getTotal());
assertTrue(cpu.getTotal() >= 0);
}