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 |
CLASS_METHOD_DELIMITER |
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) |
void |
tearDown() |
void |
tryJIT(DefaultMethod method,
ThreadContext context,
java.lang.String className,
java.lang.String methodName) |
public static final boolean USE_CACHE
public static final java.lang.String RUBY_JIT_PREFIX
public static final java.lang.String CLASS_METHOD_DELIMITER
public JITCompiler(Ruby ruby)
public void tryJIT(DefaultMethod method, ThreadContext context, java.lang.String className, java.lang.String methodName)
public void tearDown()
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 JITCompilerMBean
public long getCompileCount()
getCompileCount
in interface JITCompilerMBean
public long getFailCount()
getFailCount
in interface JITCompilerMBean
public long getCompileTime()
getCompileTime
in interface JITCompilerMBean
public long getAbandonCount()
getAbandonCount
in interface JITCompilerMBean
public long getCodeSize()
getCodeSize
in interface JITCompilerMBean
public long getAverageCodeSize()
getAverageCodeSize
in interface JITCompilerMBean
public long getAverageCompileTime()
getAverageCompileTime
in interface JITCompilerMBean
public long getLargestCodeSize()
getLargestCodeSize
in interface JITCompilerMBean
Copyright © 2002-2009 JRuby Team. All Rights Reserved.