public class JITCompiler extends java.lang.Object implements JITCompilerMBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RUBY_JIT_PREFIX |
Constructor and Description |
---|
JITCompiler(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
void |
buildThresholdReached(ThreadContext context,
Compilable method) |
long |
getAbandonCount() |
long |
getCodeAverageSize() |
long |
getCodeLargestSize() |
long |
getCodeSize() |
long |
getCompileCount() |
long |
getCompileTime() |
long |
getCompileTimeAverage() |
long |
getFailCount() |
java.lang.String[] |
getFrameAwareMethods() |
static java.lang.String |
getHashForBytes(byte[] bytes) |
static java.lang.String |
getHashForString(java.lang.String str) |
long |
getIRAverageSize() |
long |
getIRLargestSize() |
long |
getIRSize() |
java.lang.String[] |
getScopeAwareMethods() |
long |
getSuccessCount() |
java.lang.Runnable |
getTaskFor(ThreadContext context,
Compilable method) |
boolean |
isShutdown()
Return the shutdown status of the JIT compiler.
|
void |
shutdown()
Shut down this JIT compiler and its resources.
|
void |
tearDown() |
public static final java.lang.String RUBY_JIT_PREFIX
public JITCompiler(Ruby runtime)
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 getCodeAverageSize()
getCodeAverageSize
in interface JITCompilerMBean
public long getCompileTimeAverage()
getCompileTimeAverage
in interface JITCompilerMBean
public long getCodeLargestSize()
getCodeLargestSize
in interface JITCompilerMBean
public long getIRSize()
getIRSize
in interface JITCompilerMBean
public long getIRAverageSize()
getIRAverageSize
in interface JITCompilerMBean
public long getIRLargestSize()
getIRLargestSize
in interface JITCompilerMBean
public java.lang.String[] getFrameAwareMethods()
getFrameAwareMethods
in interface JITCompilerMBean
public java.lang.String[] getScopeAwareMethods()
getScopeAwareMethods
in interface JITCompilerMBean
public void tearDown()
public void shutdown()
public boolean isShutdown()
public java.lang.Runnable getTaskFor(ThreadContext context, Compilable method)
public void buildThresholdReached(ThreadContext context, Compilable method)
public static java.lang.String getHashForString(java.lang.String str)
public static java.lang.String getHashForBytes(byte[] bytes)
Copyright © 2001-2021 JRuby. All Rights Reserved.