use ProcState.toString
This commit is contained in:
parent
a939985b5d
commit
504ad65e3d
|
@ -14,13 +14,7 @@ public class TestProcState extends SigarTestCase {
|
|||
try {
|
||||
ProcState procState =
|
||||
sigar.getProcState(pid);
|
||||
char state = procState.getState();
|
||||
traceln("[" + procState.getName() + "] " +
|
||||
"pid=" + pid +
|
||||
",state=" + state +
|
||||
",threads=" + procState.getThreads() +
|
||||
",processor=" + procState.getProcessor() +
|
||||
",priority=" + procState.getPriority());
|
||||
traceln("[pid=" + pid + "] " + procState);
|
||||
} catch (SigarException e) {
|
||||
traceln("pid " + pid + ": " + e.getMessage());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue