org.mmtk.utility.gcspy
Class GCspy
java.lang.Object
org.mmtk.utility.gcspy.GCspy
public class GCspy
- extends Object
This class implements collector-independent GCspy functionality to start
the GCspy server. It handles command-line parameters for port number,
whether the VM should wait for a GCspy client to connect, and tile size.
Most importantly, it calls the Plan's startGCspyServer method which
creates a new ServerInterpreter, and adds events and space drivers.
Constructor Summary |
GCspy()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
util
public static final Util util
server
public static final ServerInterpreter server
GCspy
public GCspy()
createOptions
public static void createOptions()
getGCspyPort
public static int getGCspyPort()
- Get the number of the port that GCspy communicates on
- Returns:
- the GCspy port number
getGCspyWait
public static boolean getGCspyWait()
- Should the VM wait for GCspy to connect?
- Returns:
- whether the VM should wait for the visualiser to connect
startGCspyServer
public static void startGCspyServer()
- Start the GCspy server.
WARNING: allocates memory indirectly