Class BenchmarkEnvironment

java.lang.Object
org.teavm.perf.BenchmarkEnvironment

public class BenchmarkEnvironment extends Object
State shared by all compilations: class model, class loader, compiler settings, etc.
  • Constructor Details

    • BenchmarkEnvironment

      public BenchmarkEnvironment(ClassLoader classLoader, File outputDir)
  • Method Details

    • getClassLoader

      public ClassLoader getClassLoader()
    • getReferenceCache

      public org.teavm.model.ReferenceCache getReferenceCache()
    • getResourceProvider

      public org.teavm.parsing.ClasspathResourceProvider getResourceProvider()
    • getClassSource

      public org.teavm.model.ClassHolderSource getClassSource()
    • getOutputDir

      public File getOutputDir()
    • getOptimizationLevel

      public org.teavm.vm.TeaVMOptimizationLevel getOptimizationLevel()
    • setOptimizationLevel

      public void setOptimizationLevel(org.teavm.vm.TeaVMOptimizationLevel optimizationLevel)
    • isCpuProfiling

      public boolean isCpuProfiling()
      Whether CPU profiles of measurement iterations should be recorded. Backends that support profiling may produce code that is more convenient for profiling, e.g. not obfuscated.
    • setCpuProfiling

      public void setCpuProfiling(boolean cpuProfiling)