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