public class Profile extends Object
Profiling is available only when using the profiling variant of the virtual machine (jamaicavmp) or when option -profile is set when an application is created by the builder.
| Constructor and Description |
|---|
Profile() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpProfileAtTerminationOfVM(boolean enabled)
Enables dumping of profile information when the VM terminates.
|
static void |
dumpProfileData()
Dumps the collected profile data into the given 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 |
forceDumpAtTerminationOfVM(boolean enabled)
Overrides the VM's decision to suppress the profile dump if the application
did not terminate normally.
|
static void |
main(String[] args)
Main routine.
|
static void |
profileClassPath(boolean enabled)
Activates profiling of class path information.
|
static void |
profileMemory(boolean enabled)
Activates profiling of memory information.
|
static void |
profileSpeed(boolean enabled)
Activates profiling of execution speed.
|
static void |
resetProfileData()
Reset the collected profile data.
|
static void |
setQuietDump(boolean enabled)
Suppresses all messages related to profile creation except errors.
|
static void |
waitOnSocket(int port)
Start a profiling thread that waits for requests to dump
profiling data on the given port number.
|
public static void dumpProfileData(String filename)
UnsupportedOperationException - if the VM does not support profiling.filename - Local file name for the profile. If it is null,
the default file name of the application is used.public static void dumpProfileDataViaNet(int port)
UnsupportedOperationException - if the VM does not support profiling.public static void resetProfileData()
UnsupportedOperationException - if the VM does not support profiling.public static void profileMemory(boolean enabled)
UnsupportedOperationException - if the VM does not support profiling.enabled - memory information is collected if truepublic static void profileSpeed(boolean enabled)
UnsupportedOperationException - if the VM does not support profiling.enabled - execution speed information is collected if truepublic static void profileClassPath(boolean enabled)
UnsupportedOperationException - if the VM does not support profiling.enabled - class path information is collected if truepublic static void dumpProfileAtTerminationOfVM(boolean enabled)
UnsupportedOperationException - if the VM does not support profiling.enabled - profile dump is requested if truepublic static void forceDumpAtTerminationOfVM(boolean enabled)
UnsupportedOperationException - if the VM does not support profiling.enabled - if true, instructs the VM to dump the profile even if the
application did not terminate normallypublic static void setQuietDump(boolean enabled)
UnsupportedOperationException - if the VM does not support profiling.enabled - status messages will be suppressed if and only if truepublic static void dumpProfileData()
UnsupportedOperationException - if the VM does not support profiling.public static void waitOnSocket(int port)
IllegalStateException - if the profiling thread is already
running.port - the port numberpublic static void main(String[] args)
args - the command line arguments, args[0] must give the command name,
args[1] must give the IP address, args[2] must give the port number.
Option(s) may be specified.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.