aicas logoJamaica 3.2 release 62

com.aicas.jamaica.lang
Class Profile

java.lang.Object
  extended by com.aicas.jamaica.lang.Profile

public class Profile
extends Object

Profile provides control over the profiling of the JamaicaVM. The profiling is available only when using the profiling variant of the virtual machien (jamaicavmp) or when option "-profile" is set when an application is created by the builder.


Constructor Summary
Profile()
           
 
Method Summary
static void dumpProfileData()
          Dumps the collected profile data into the profile file.
static void dumpProfileData(String filename)
          Dumps the collected profile data into the given profile file.
static void dumpProfileDataViaNet(int port)
          Dumps the collected profile data into the profile file.
static void main(String[] args)
          Main routine.
static void waitOnSocket(int port)
          Start a profiling thread that waits for requests to dump profiling datat on the given port number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile

public Profile()
Method Detail

dumpProfileData

public static void dumpProfileData()
Dumps the collected profile data into the profile file. This clears the data as well. This is a NOP if profiling is not enabled.


dumpProfileData

public static void dumpProfileData(String filename)
Dumps the collected profile data into the given profile file. This clears the data as well. This is a NOP if profiling is not enabled.

Parameters:
filename - Local file name for the profile. If it is null, the default file name of the application is used.

dumpProfileDataViaNet

public static void dumpProfileDataViaNet(int port)
Dumps the collected profile data into the profile file. This clears the data as well. This is a NOP if profiling is not enabled.


waitOnSocket

public static void waitOnSocket(int port)
Start a profiling thread that waits for requests to dump profiling datat on the given port number.

Parameters:
port - the port number
Throws:
IllegalStateException - if the profiling thread is already running.

main

public static void main(String[] args)
Main routine. Connects to an application that requests profiling requests and requests dumping of a profile. Usage: jamaicavm co.aicas.jamaica.lang.Profile

Parameters:
args - the command line arguments, args[0] must give the IP address, args[1] must give the port number. Option(s) may be specified.

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.