public class Runtime extends java.lang.Object implements RuntimeMBean
| Modifier and Type | Field and Description |
|---|---|
private java.lang.ref.SoftReference<Ruby> |
ruby |
| Modifier and Type | Method and Description |
|---|---|
private static void |
dumpThread(Ruby ruby,
RubyThread th,
TraceType.Gather gather,
java.io.PrintWriter pw) |
java.lang.String |
dumpThreads(TraceType.Gather gather) |
java.lang.String |
executeRuby(java.lang.String code) |
java.lang.String |
fullThreadDump() |
int |
getBacktraceCount() |
int |
getCallerCount() |
int |
getExceptionCount() |
java.lang.String |
rawThreadDump() |
java.lang.String |
threadDump() |
private final java.lang.ref.SoftReference<Ruby> ruby
public Runtime(Ruby ruby)
public int getExceptionCount()
getExceptionCount in interface RuntimeMBeanpublic int getBacktraceCount()
getBacktraceCount in interface RuntimeMBeanpublic int getCallerCount()
getCallerCount in interface RuntimeMBeanpublic java.lang.String threadDump()
threadDump in interface RuntimeMBeanpublic java.lang.String rawThreadDump()
rawThreadDump in interface RuntimeMBeanpublic java.lang.String fullThreadDump()
fullThreadDump in interface RuntimeMBeanpublic java.lang.String dumpThreads(TraceType.Gather gather)
private static void dumpThread(Ruby ruby, RubyThread th, TraceType.Gather gather, java.io.PrintWriter pw)
public java.lang.String executeRuby(java.lang.String code)
executeRuby in interface RuntimeMBean