add proc_state.processor
This commit is contained in:
1 parent
2f1ecff921
commit
6b7a36f521
6 files changed
+20
-1
No files matched your search
@@ -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'));
|
||||
|
||||
Reference in new issue
Block a user