add proc_state.processor

This commit is contained in:
Doug MacEachern committed 2005-11-23 01:16:52 +00:00
1 parent 2f1ecff921
commit 6b7a36f521
6 files changed
+20 -1

No files matched your search

+5
View File
@@ -353,6 +353,11 @@ my %classes = (
desc => 'Number of active threads',
plat => 'AHLSW'
},
{
name => 'processor', type => 'Int',
desc => 'Processor number last run on',
plat => ''
},
],
ProcFd => [
{
@@ -22,6 +22,7 @@ public class TestProcState extends SigarTestCase {
char state = procState.getState();
traceln(procState.getName() + "=" + state);
traceln("threads=" + procState.getThreads());
traceln("processor=" + procState.getProcessor());
traceln("priority=" + procState.getPriority());
assertTrue((state == 'R') || (state == 'S'));