public class WarmUpController extends Object
Modifier and Type | Method and Description |
---|---|
int |
forceCompile(Collection<MethodInfoEntry> entries)
|
boolean |
forceCompile(Constructor ctor,
int level)
force compile a
Constructor |
int |
forceCompile(MethodInfoEntry entry)
|
boolean |
forceCompile(Method m,
int level)
force compile a
Method |
int |
forceCompileFromFile(File file)
force compile methods recorded in target file
|
int |
forceCompileFromFiles(List<File> files)
force compile methods recorded in target file list
|
List<MethodInfoEntry> |
getCompiledMethodList(int level)
get compiled method list in given compile level.
|
static WarmUpController |
getInstance() |
void |
refresh()
refresh cached
MethodInfoEntry collections |
void |
saveMethodsToFile(File target,
int level)
Save all methods to target file which compile level greater than or equal to given level
|
public static WarmUpController getInstance()
public void refresh()
MethodInfoEntry
collectionspublic List<MethodInfoEntry> getCompiledMethodList(int level)
WarmUpController
.refresh() before this.level
- compile levelMethodInfoEntry
public int forceCompile(Collection<MethodInfoEntry> entries)
entries
- literal entries MethodInfoEntry
public int forceCompile(MethodInfoEntry entry)
entry
- literal entry MethodInfoEntry
public boolean forceCompile(Method m, int level)
Method
m
- target Method
level
- compile levelpublic boolean forceCompile(Constructor ctor, int level)
Constructor
ctor
- target Constructor
level
- compile levelpublic int forceCompileFromFile(File file) throws IOException
file
- target File
IOException
public int forceCompileFromFiles(List<File> files) throws IOException
files
- target File
sIOException
public void saveMethodsToFile(File target, int level) throws IOException
target
- target File
level
- minimal level to saveIOException
"Copyright 2018, Alibaba, Inc."