Example #1
0
    def get_classpath_repr(self):
        return self.dist().classpath_repr()

_compilers = ['graal-economy', 'graal']
_bootClasspathDists = [
    BootClasspathDist('GRAAL'),
]

def add_compiler(compilerName):
    _compilers.append(compilerName)

def add_boot_classpath_dist(dist):
    _bootClasspathDists.append(dist)

mx_gate.add_jacoco_includes(['com.oracle.graal.*'])
mx_gate.add_jacoco_excluded_annotations(['@Snippet', '@ClassSubstitution'])


class JVMCI9MicrobenchExecutor(mx_microbench.MicrobenchExecutor):

    def parseForkedVmArgs(self, vmArgs):
        jvm = get_vm()
        return ['-' + jvm] + _parseVmArgs(_jdk, vmArgs)

    def run_java(self, args):
        run_vm(args)

mx_microbench.set_microbenchmark_executor(JVMCI9MicrobenchExecutor())


def ctw(args, extraVMarguments=None):
Example #2
0

_compilers = ["graal-economy", "graal"]
_bootClasspathDists = [BootClasspathDist("GRAAL")]


def add_compiler(compilerName):
    _compilers.append(compilerName)


def add_boot_classpath_dist(dist):
    _bootClasspathDists.append(dist)


mx_gate.add_jacoco_includes(["com.oracle.graal.*"])
mx_gate.add_jacoco_excluded_annotations(["@Snippet", "@ClassSubstitution"])

# This is different than the 'jmh' commmand in that it
# looks for internal JMH benchmarks (i.e. those that
# depend on the JMH library).
def microbench(args):
    """run JMH microbenchmark projects"""
    parser = ArgumentParser(
        prog="mx microbench",
        description=microbench.__doc__,
        usage="%(prog)s [command options|VM options] [-- [JMH options]]",
    )
    parser.add_argument("--jar", help="Explicitly specify micro-benchmark location")
    known_args, args = parser.parse_known_args(args)

    vmArgs, jmhArgs = mx.extract_VM_args(args, useDoubleDash=True)