|
TPTP 4.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.collection.profiler.Profiler
This is a singleton class that is used by the application to manage the Java Profiling Agent. This class is a singleton and cannot be instantiated by the user. In order to access the singleton the application must use Profiler.getProfiler()
| Field Summary | |
|---|---|
static int |
EMIT_XML_FAIL
|
static int |
EMIT_XML_SUCCESS
|
static int |
EMIT_XML_SUSPENDED_IO
|
static int |
PROFILER_EXECUTION_AND_HEAP
|
static int |
PROFILER_EXECUTION_ONLY
|
static int |
PROFILER_HEAP_ONLY
|
static int |
PROFILER_OPTIMIZED_HEAP_ONLY
|
| Method Summary | |
|---|---|
void |
analyzeHeap(java.lang.String name)
Analyze the heap to determine what new objects have been created in the heap since the last time the heap was marked or the last time it was analyzed. |
void |
disableGC()
Disable garbage collection. |
static int |
emitXMLFragment(byte[] arr,
int offset,
int len)
emitXMLFragment |
static int |
emitXMLFragment(java.lang.String xmlFragment)
emitXMLFragment |
void |
enableGC()
Enable garbage collection after previously disabling it |
static double |
getCurrentThreadCpuTime()
getCurrentThreadCpuTime returns thread cpu time converted in seconds (see JVMPI GetCurrentThreadCpuTime). |
static double |
getCurrentTime()
getCurrentTime Returns current time (in seconds) more accurately than System.currentTimeMillis() |
static Profiler |
getProfiler()
Getter to retieve the singleton Profiler. |
boolean |
isProfiling()
Is the profiler actively collecting data. |
void |
markHeap()
Mark the heap. |
java.util.List |
optimizedHeapInfoSnapshot()
Take a optimized heap dump of the application. |
void |
release()
Release the profiler so that all of the session data is cleaned up. |
void |
runGC()
|
void |
setMode(int mode)
Once a handle to the profiler is established the mode in which it is running can be set. |
void |
startProfiling(boolean currentThreadOnly)
Start a profiling session. |
void |
startProfiling(boolean currentThreadOnly,
int boundaryDepth)
Start a profiling session. |
java.util.List |
stopOptimizedHeapInfoSnapshot()
|
void |
stopProfiling()
Stop profiling the information requested in a previous call to startProfiling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROFILER_EXECUTION_ONLY
public static final int PROFILER_HEAP_ONLY
public static final int PROFILER_EXECUTION_AND_HEAP
public static final int PROFILER_OPTIMIZED_HEAP_ONLY
public static final int EMIT_XML_SUCCESS
public static final int EMIT_XML_SUSPENDED_IO
public static final int EMIT_XML_FAIL
| Method Detail |
public static Profiler getProfiler()
throws ProfilerNotAvailableException
ProfilerNotAvailableException
public void setMode(int mode)
throws ProfilerNotAvailableException
mode -
ProfilerNotAvailableExceptionpublic void startProfiling(boolean currentThreadOnly)
currentThreadOnly - - the profiling information is by default for the entire process. If
currentThreadOnly is true profiling information will be restricted
to the thread that is currently executing the startProfiling method.
public void startProfiling(boolean currentThreadOnly,
int boundaryDepth)
currentThreadOnly - - the profiling information is by default for the entire process. If
currentThreadOnly is true profiling information will be restricted
to the thread that is currently executing the startProfiling method.boundaryDepth - - the profiling information does not extend beyond the number of frames
indicated by boundaryDepth. If the boundary depth is zero or negative
then the number of frames is unlimited.public void stopProfiling()
public void markHeap()
public void analyzeHeap(java.lang.String name)
name - - a label that will be applied to this analysis session so that it can be identified
amongst several analysis sessions. THIS IS CURRENTLY NOT SUPPORTED.public java.util.List optimizedHeapInfoSnapshot()
public java.util.List stopOptimizedHeapInfoSnapshot()
public void disableGC()
public void enableGC()
public void runGC()
public boolean isProfiling()
public void release()
public static int emitXMLFragment(java.lang.String xmlFragment)
xmlFragment - - the xmlFragment string to emit
public static int emitXMLFragment(byte[] arr,
int offset,
int len)
arr - - the byte array where the XML fragment is containedoffset - - the starting offset into arr where the XML fragment startslen - - the length of bytes that should be read from the given offset
public static double getCurrentTime()
public static double getCurrentThreadCpuTime()
|
TPTP 4.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||