add cpu.wait metric
This commit is contained in:
1 parent
921a4ce41c
commit
46ba56bc17
12 files changed
+27
-10
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user