use ProcState.toString

This commit is contained in:
Doug MacEachern 2005-11-23 19:34:47 +00:00
parent a939985b5d
commit 504ad65e3d
1 changed files with 1 additions and 7 deletions

View File

@ -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());
} }