Package org.adoptopenjdk.jitwatch.core
Class JITWatchConfig
java.lang.Object
org.adoptopenjdk.jitwatch.core.JITWatchConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate JITWatchConfig.CompressedOopsprivate final Stringprivate booleanprivate Stringprivate Stringprivate intprivate booleanprivate booleanprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate Stringprivate Propertiesprivate booleanprivate static final com.chrisnewland.freelogj.Loggerprivate intprivate booleanprivate booleanprivate ParsedClasspathprivate Stringprivate booleanprivate Stringprivate static final Stringprivate Fileprivate static final Stringprivate Stringprivate booleanprivate booleanprivate booleanprivate JITWatchConfig.TieredCompilation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrUpdateVMLanguage(String language, String path) voidaddSourceFolder(File sourceFolder) clone()voiddeleteProfile(String name) intintintprivate StringgetProfilePropertyName(String propertyName) private StringgetProperty(Properties props, String propertyName) private StringgetProperty(Properties props, String propertyName, String defaultValue) getVMLanguagePath(String language) private voidbooleanisBuiltInProfile(String profileName) booleanbooleanbooleanbooleanbooleanbooleanprivate booleanisSandboxProperty(String propertyName) booleanbooleanbooleanbooleanprivate voidprivate booleanloadBooleanFromProperty(Properties props, String propertyName, boolean defaultValue) loadCommaSeparatedListFromProperty(Properties props, String propertyName) private voidprivate intloadIntFromProperty(Properties props, String propertyName, int defaultValue) private voidprivate voidprivate voidvoidprivate voidputProperty(Properties props, String propertyName, String value) private voidprivate voidvoidprivate voidvoidprivate voidvoidsetBackgroundCompilationMode(JITWatchConfig.BackgroundCompilation backgroundCompilationMode) voidsetClassLocations(List<String> classLocations) voidsetCompileThreshold(int compileThreshold) voidsetCompressedOopsMode(JITWatchConfig.CompressedOops compressedOopsMode) voidsetDisableInlining(boolean disableInlining) voidsetExtraVMCompilationSwitches(String extraVMCompilationSwitches) voidsetExtraVMRuntimeSwitches(String extraVMRuntimeSwitches) voidsetFreqInlineSize(int freqInlineSize) voidsetHideInterfaces(boolean hideInterfaces) voidsetLastEditorPaneList(List<String> editorPanes) voidsetLastLogDir(String lastLogDir) voidsetLocalAsmLabels(boolean localAsmLabels) voidsetMaxInlineSize(int maxInlineSize) voidsetNoPromptHsdis(boolean noPromptHsdis) voidsetOnStackReplacementMode(JITWatchConfig.OnStackReplacement onStackReplacementMode) voidsetPrintAssembly(boolean printAssembly) voidsetProfileName(String name) voidsetSandboxIntelMode(boolean intelMode) voidsetSandboxWorkingDir(String sandboxWorkingDir) voidsetShowNothingMounted(boolean showNothingMounted) voidsetShowOnlyCompiledClasses(boolean showOnlyCompiledClasses) voidsetShowOnlyCompiledMembers(boolean showOnlyCompiledMembers) voidsetSourceLocations(List<String> sourceLocations) voidsetTieredCompilationMode(JITWatchConfig.TieredCompilation tieredCompilation) voidsetTriViewMouseFollow(boolean mouseFollow) voidvoidvoid
-
Field Details
-
logger
private static final com.chrisnewland.freelogj.Logger logger -
PROPERTIES_FILENAME
- See Also:
-
KEY_SOURCE_LOCATIONS
- See Also:
-
KEY_CLASS_LOCATIONS
- See Also:
-
KEY_VM_LANGUAGE_PATH
- See Also:
-
KEY_SHOW_JIT_ONLY_MEMBERS
- See Also:
-
KEY_SHOW_JIT_ONLY_CLASSES
- See Also:
-
KEY_SHOW_HIDE_INTERFACES
- See Also:
-
KEY_SHOW_NOTHING_MOUNTED
- See Also:
-
KEY_LAST_LOG_DIR
- See Also:
-
KEY_LAST_SANDBOX_EDITOR_PANES
- See Also:
-
KEY_TRIVIEW_TRILINK_MOUSE_FOLLOW
- See Also:
-
KEY_TRIVIEW_LOCAL_ASM_LABELS
- See Also:
-
SANDBOX_PREFIX
- See Also:
-
KEY_SANDBOX_INTEL_MODE
- See Also:
-
KEY_SANDBOX_TIERED_MODE
- See Also:
-
KEY_SANDBOX_COMPRESSED_OOPS_MODE
- See Also:
-
KEY_SANDBOX_FREQ_INLINE_SIZE
- See Also:
-
KEY_SANDBOX_MAX_INLINE_SIZE
- See Also:
-
KEY_SANDBOX_PRINT_ASSEMBLY
- See Also:
-
KEY_SANDBOX_DISABLE_INLINING
- See Also:
-
KEY_SANDBOX_COMPILER_THRESHOLD
- See Also:
-
KEY_SANDBOX_EXTRA_VM_COMPILATION_SWITCHES
- See Also:
-
KEY_SANDBOX_EXTRA_VM_RUNTIME_SWITCHES
- See Also:
-
KEY_SANDBOX_BACKGROUND_COMPILATION
- See Also:
-
KEY_SANDBOX_ON_STACK_REPLACEMENT
- See Also:
-
KEY_SANDBOX_WORKING_DIR
- See Also:
-
KEY_LAST_PROFILE
- See Also:
-
KEY_NO_PROMPT_HSDIS
- See Also:
-
sourceLocations
-
classLocations
-
editorPanes
-
showOnlyCompiledMembers
private boolean showOnlyCompiledMembers -
showOnlyCompiledClasses
private boolean showOnlyCompiledClasses -
hideInterfaces
private boolean hideInterfaces -
showNothingMounted
private boolean showNothingMounted -
lastLogDir
-
intelMode
private boolean intelMode -
mouseFollow
private boolean mouseFollow -
localAsmLabels
private boolean localAsmLabels -
tieredCompilationMode
-
compressedOopsMode
-
backgroundCompilationMode
-
onStackReplacementMode
-
freqInlineSize
private int freqInlineSize -
maxInlineSize
private int maxInlineSize -
printAssembly
private boolean printAssembly -
disableInlining
private boolean disableInlining -
compileThreshold
private int compileThreshold -
extraVMCompilationSwitches
-
extraVMRuntimeSwitches
-
sandboxWorkingDir
-
profileName
-
CONFIG_OVERRIDE
-
propertiesFile
-
loadedProps
-
preSandboxProfile
-
noPromptHsdis
private boolean noPromptHsdis -
parsedClasspath
-
-
Constructor Details
-
JITWatchConfig
public JITWatchConfig() -
JITWatchConfig
-
-
Method Details
-
initialise
private void initialise() -
switchToSandbox
public void switchToSandbox() -
switchFromSandbox
public void switchFromSandbox() -
getParsedClasspath
-
clone
-
setProfileName
-
getProfileName
-
deleteProfile
-
isBuiltInProfile
-
getProfileNames
-
loadPropertiesFromFile
private void loadPropertiesFromFile() -
unmarshalPropertiesToConfig
public void unmarshalPropertiesToConfig() -
loadTieredMode
private void loadTieredMode() -
loadCompressedOopsMode
private void loadCompressedOopsMode() -
loadBackgroundCompilationMode
private void loadBackgroundCompilationMode() -
loadOnStackReplacementMode
private void loadOnStackReplacementMode() -
saveTieredCompilationMode
private void saveTieredCompilationMode() -
saveCompressedOopsMode
private void saveCompressedOopsMode() -
saveBackgroundCompilationMode
private void saveBackgroundCompilationMode() -
saveOnStackReplacementMode
private void saveOnStackReplacementMode() -
loadBooleanFromProperty
private boolean loadBooleanFromProperty(Properties props, String propertyName, boolean defaultValue) -
loadIntFromProperty
-
loadCommaSeparatedListFromProperty
-
getProperty
-
getProperty
-
putProperty
-
getProfilePropertyName
-
isSandboxProperty
-
saveConfig
public void saveConfig() -
marshalConfigToProperties
public void marshalConfigToProperties() -
savePropertiesToFile
public void savePropertiesToFile() -
getConfiguredClassLocations
-
getAllClassLocations
-
getSourceLocations
-
getLastEditorPaneList
-
addSourceFolder
-
setSourceLocations
-
setClassLocations
-
setLastEditorPaneList
-
isShowOnlyCompiledMembers
public boolean isShowOnlyCompiledMembers() -
setShowOnlyCompiledMembers
public void setShowOnlyCompiledMembers(boolean showOnlyCompiledMembers) -
isShowOnlyCompiledClasses
public boolean isShowOnlyCompiledClasses() -
setShowOnlyCompiledClasses
public void setShowOnlyCompiledClasses(boolean showOnlyCompiledClasses) -
isHideInterfaces
public boolean isHideInterfaces() -
setHideInterfaces
public void setHideInterfaces(boolean hideInterfaces) -
isShowNothingMounted
public boolean isShowNothingMounted() -
setShowNothingMounted
public void setShowNothingMounted(boolean showNothingMounted) -
getLastLogDir
-
setLastLogDir
-
isSandboxIntelMode
public boolean isSandboxIntelMode() -
setSandboxIntelMode
public void setSandboxIntelMode(boolean intelMode) -
getTieredCompilationMode
-
setTieredCompilationMode
-
getFreqInlineSize
public int getFreqInlineSize() -
setFreqInlineSize
public void setFreqInlineSize(int freqInlineSize) -
getMaxInlineSize
public int getMaxInlineSize() -
setMaxInlineSize
public void setMaxInlineSize(int maxInlineSize) -
isPrintAssembly
public boolean isPrintAssembly() -
setPrintAssembly
public void setPrintAssembly(boolean printAssembly) -
isDisableInlining
public boolean isDisableInlining() -
setDisableInlining
public void setDisableInlining(boolean disableInlining) -
getCompileThreshold
public int getCompileThreshold() -
setCompileThreshold
public void setCompileThreshold(int compileThreshold) -
getExtraVMCompilationSwitches
-
setExtraVMCompilationSwitches
-
getSandboxWorkingDir
-
setSandboxWorkingDir
-
getExtraVMRuntimeSwitches
-
setExtraVMRuntimeSwitches
-
getCompressedOopsMode
-
setCompressedOopsMode
-
getBackgroundCompilationMode
-
setBackgroundCompilationMode
public void setBackgroundCompilationMode(JITWatchConfig.BackgroundCompilation backgroundCompilationMode) -
getOnStackReplacementMode
-
setOnStackReplacementMode
-
addOrUpdateVMLanguage
-
getVMLanguagePath
-
getVMLanguageList
-
isTriViewMouseFollow
public boolean isTriViewMouseFollow() -
setTriViewMouseFollow
public void setTriViewMouseFollow(boolean mouseFollow) -
isLocalAsmLabels
public boolean isLocalAsmLabels() -
setLocalAsmLabels
public void setLocalAsmLabels(boolean localAsmLabels) -
isNoPromptHsdis
public boolean isNoPromptHsdis() -
setNoPromptHsdis
public void setNoPromptHsdis(boolean noPromptHsdis)
-