|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.colossus.guiutil.DebugMethods
public class DebugMethods
some small methods helpful during development, to wait before program ends to see object instance statistics, once just until return is pressed, once a loop in which one can force GC, see object statistics, etc. until one enters "x" to make the loop exit.
| Constructor Summary | |
|---|---|
DebugMethods()
|
|
| Method Summary | |
|---|---|
static void |
doCleanupStuff(boolean doSwingCleanup)
It seems this is the sequence of things needed to achieve full garbage collection/cleanup of JFrame stuff (Java 1.4.2): GC and finalization, 2 dummy frames, do the SwingCleanup hack, and once again GC and finalization. |
static void |
waitReturn()
prints out "PRESS RETURN TO CONTINUE", and after return is pressed, prints then "OK, continuing" and returns. |
static void |
waitReturnLoop(boolean force)
Repeatedly checks whether now all tracked objects are gone. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugMethods()
| Method Detail |
|---|
public static void doCleanupStuff(boolean doSwingCleanup)
doSwingCleanup - Whether to call the swingCleanup() methodpublic static void waitReturn()
public static void waitReturnLoop(boolean force)
force - Go into loop even if allGone already returns true at begin
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||