public class Runtime extends Object implements RuntimeMBean
Modifier and Type | Method and Description |
---|---|
String |
dumpThreads(TraceType.Gather gather)
Dump all the threads that are known to ruby.
|
String |
executeRuby(String code) |
String |
fullThreadDump() |
int |
getBacktraceCount() |
int |
getCallerCount() |
int |
getExceptionCount() |
String |
rawThreadDump() |
String |
threadDump() |
public Runtime(Ruby ruby)
public int getExceptionCount()
getExceptionCount
in interface RuntimeMBean
public int getBacktraceCount()
getBacktraceCount
in interface RuntimeMBean
public int getCallerCount()
getCallerCount
in interface RuntimeMBean
public String threadDump()
threadDump
in interface RuntimeMBean
public String rawThreadDump()
rawThreadDump
in interface RuntimeMBean
public String fullThreadDump()
fullThreadDump
in interface RuntimeMBean
public String dumpThreads(TraceType.Gather gather)
gather
- The level of backtrace that get's raised in each threadpublic String executeRuby(String code)
executeRuby
in interface RuntimeMBean
Copyright © 2001-2017 JRuby. All Rights Reserved.