|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aicas.jamaica.lang.Debug
public class Debug
Debug provide Jamaica-specific debugging APIs.
| Constructor Summary | |
|---|---|
Debug()
|
|
| Method Summary | |
|---|---|
static void |
callInspector()
Activate the Jamaica inspector if it is build in, do nothing otherwise. |
static void |
dumpAllStacks()
Print the stack trace of all used threads. |
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 |
dumpStack()
Print the current stack trace using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
dumpStackOf(Thread thread)
Print the stack trace of the given thread using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
dumpThreadStates()
Print the states of all running threads in the system. |
static void |
forceTreeArrays(boolean b)
Force the allocation of non-contignous arrays. |
static int |
getDebugLevel()
Request the current debug level. |
static long |
getExecutionTime(Thread t)
get high resolution Java execution time of given thread (may include the execution time of any non-java thread that preempted this thread, does not include execution time of native JNI code). |
static long |
getGarbageCollectionTime(Thread t)
get high resolution execution time spent for garbage collection work by given thread (may include the execution time of any non-java thread that preempted this thread's garbage collection activity). |
static long |
getInterpreterTime(Thread t)
get high resolution execution time spent by interpreted Java code by given thread (may include the execution time of any non-java thread that preempted this thread's interpreter activity). |
static long |
getMaxFreeRangeSize()
Gets the size of the largest continuous memory block the can be allocated. |
static int |
getNumberOfBlocks()
Gets the number of blocks in the heap. |
static int |
getNumberOfFreeRanges()
Gets the number of entries in the free list. |
static long |
getRawHighPrecisionTime()
get raw high resolution time. |
static int |
getThreadId(Thread thread)
Return the JamaicaVM thread id for a given thread. |
static long |
getTotalExecutionTime(Thread t)
get high resolution total execution time of given thread (may include the execution time of any non-java thread that preempted this thread or any thread that preempted this thread's native code). |
static void |
native_print(String format,
double d)
output double using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
native_print(String format,
float f)
output float using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
native_print(String format,
int i)
output integer using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
native_print(String format,
long l)
output long using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
native_println()
output LF using a native function , i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
print(boolean b)
Output a boolean value using a native method, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
print(char c)
|
static void |
print(char[] buffer,
int offset,
int length)
Output subrange offset..offset+length-1 of a char[] using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
print(double d)
output double using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
print(float f)
output float using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
print(int i)
output integer using a native function i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
print(long l)
output long using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
print(String s)
output string using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
printDebugGroups()
Print the currently set Jamaica Debug Groups. |
static void |
printhex(int i)
output jex integer using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
printhex(long l)
output hex long using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
printhexln(int i)
output jex integer followed by LF using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
printhexln(long l)
output hex long followed by LF using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
println()
output LF using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
println(boolean b)
Output a boolean followed by LF value using a native method, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
println(double d)
output double followed by LF using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
println(float f)
output float followed by LF using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
println(int i)
output integer followed by LF using a native function i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
println(long l)
output long followed by LF using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
println(String s)
output a string followed by LF using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
printlnTimeStamp(String message)
Prints a time stamp with a message followed by a new line. |
static void |
printStackTrace(Throwable throwable)
Print the stack trace of the given Thorwable object using a native function, i.e., without requiring the VM and java.lang, java.io classes to be intialized and without memory allocation. |
static void |
printTimeStamp(String message)
Prints a time stamp followed by the given message. |
static void |
printTracedAllocs()
Prints the traced allocations if TRACE_ALLOCS is defined. |
static void |
resetProfileData()
Reset the collected profile data. |
static void |
setDebugGroups(String groups)
Set the Jamaica Debug Groups. |
static void |
setDebugLevel(int level)
Set the Jamaica DebugLevel. |
static void |
showReachability(Class clazz)
Show the reachability of all instances of a given class. |
static void |
showReferencesToClass(Class clazz)
Show references to all instances of a given class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Debug()
| Method Detail |
|---|
public static void native_println()
public static void native_print(String format,
int i)
format - C-print-format stringi - integer
public static void native_print(String format,
long l)
format - C-print-format stringl - long
public static void native_print(String format,
float f)
format - C-print-format stringf - float
public static void native_print(String format,
double d)
format - C-print-format stringd - doublepublic static void print(String s)
s - stringpublic static void println()
public static void println(String s)
public static void print(char c)
public static void print(int i)
i - intergerpublic static void println(int i)
i - intergerpublic static void printhex(int i)
i - intergerpublic static void printhexln(int i)
i - intergerpublic static void print(long l)
l - longpublic static void println(long l)
l - longpublic static void printhex(long l)
l - longpublic static void printhexln(long l)
l - longpublic static void print(float f)
f - floatpublic static void println(float f)
f - floatpublic static void print(double d)
d - doublepublic static void println(double d)
d - doublepublic static void print(boolean b)
b - the boolean to printpublic static void println(boolean b)
b - the boolean to print
public static void print(char[] buffer,
int offset,
int length)
buffer - the boolean to printoffset - the offsetlength - the lengthpublic static void setDebugLevel(int level)
level - The new debugLevel.public static int getDebugLevel()
public static void setDebugGroups(String groups)
groups - The debugging groups.public static void printDebugGroups()
public static void printTimeStamp(String message)
message - The message to print.printlnTimeStamp(java.lang.String)public static void printlnTimeStamp(String message)
message - The message to print.printTimeStamppublic static void printStackTrace(Throwable throwable)
throwable - the exception whose stack trace is to be printed.public static void dumpStack()
public static void dumpAllStacks()
dumpStackOfpublic static void dumpStackOf(Thread thread)
thread - the thread for which the stack should be printed.
May be null to dump the Java stacks of all used threads.public static void showReachability(Class clazz)
clazz - a class, if null this function has no effect.public static void showReferencesToClass(Class clazz)
clazz - a class, if null this function has no effect.public static void printTracedAllocs()
public static void dumpProfileData()
public static void dumpProfileData(String filename)
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)
port - the network port to which the profile is sent.public static void resetProfileData()
public static long getRawHighPrecisionTime()
public static long getExecutionTime(Thread t)
t - the Java thread for which the execution time is to be
returned.
public static long getTotalExecutionTime(Thread t)
t - the Java thread for which the execution time is to be
returned.
public static long getGarbageCollectionTime(Thread t)
t - the Java thread for which the garbage collection time is
to be returned.
public static long getInterpreterTime(Thread t)
t - the Java thread for which the interpreter time is to be
returned.
public static long getMaxFreeRangeSize()
public static int getNumberOfFreeRanges()
public static int getNumberOfBlocks()
public static void forceTreeArrays(boolean b)
public static void dumpThreadStates()
public static int getThreadId(Thread thread)
thread - a Java thread instance, must not be null.
public static void callInspector()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||