public class JITCompiler extends java.lang.Object implements JITCompilerMBean
| Modifier and Type | Class and Description |
|---|---|
static class |
JITCompiler.JITClassGenerator |
static class |
JITCompiler.JITCounts |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RUBY_JIT_PREFIX |
static boolean |
USE_CACHE |
| Constructor and Description |
|---|
JITCompiler(Ruby ruby) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAbandonCount() |
long |
getAverageCodeSize() |
long |
getAverageCompileTime() |
long |
getCodeSize() |
long |
getCompileCount() |
long |
getCompileTime() |
long |
getFailCount() |
static java.lang.String |
getHashForBytes(byte[] bytes) |
static java.lang.String |
getHashForString(java.lang.String str) |
long |
getLargestCodeSize() |
long |
getSuccessCount() |
static void |
saveToCodeCache(Ruby ruby,
byte[] bytecode,
java.lang.String packageName,
java.io.File cachedClassFile) |
DynamicMethod |
tryJIT(DefaultMethod method,
ThreadContext context,
java.lang.String name) |
public static final boolean USE_CACHE
public static final java.lang.String RUBY_JIT_PREFIX
public JITCompiler(Ruby ruby)
public DynamicMethod tryJIT(DefaultMethod method, ThreadContext context, java.lang.String name)
public static java.lang.String getHashForString(java.lang.String str)
public static java.lang.String getHashForBytes(byte[] bytes)
public static void saveToCodeCache(Ruby ruby, byte[] bytecode, java.lang.String packageName, java.io.File cachedClassFile)
public long getSuccessCount()
getSuccessCount in interface JITCompilerMBeanpublic long getCompileCount()
getCompileCount in interface JITCompilerMBeanpublic long getFailCount()
getFailCount in interface JITCompilerMBeanpublic long getCompileTime()
getCompileTime in interface JITCompilerMBeanpublic long getAbandonCount()
getAbandonCount in interface JITCompilerMBeanpublic long getCodeSize()
getCodeSize in interface JITCompilerMBeanpublic long getAverageCodeSize()
getAverageCodeSize in interface JITCompilerMBeanpublic long getAverageCompileTime()
getAverageCompileTime in interface JITCompilerMBeanpublic long getLargestCodeSize()
getLargestCodeSize in interface JITCompilerMBeanCopyright © 2002-2009 JRuby Team. All Rights Reserved.