org.mmtk.utility.gcspy
Class GCspy

java.lang.Object
  extended by 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.


Field Summary
static ServerInterpreter server
           
static Util util
           
 
Constructor Summary
GCspy()
           
 
Method Summary
static void createOptions()
           
static int getGCspyPort()
          Get the number of the port that GCspy communicates on
static boolean getGCspyWait()
          Should the VM wait for GCspy to connect?
static void startGCspyServer()
          Start the GCspy server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

util

public static final Util util

server

public static final ServerInterpreter server
Constructor Detail

GCspy

public GCspy()
Method Detail

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