public class MemoryUsageBenchmark extends HotSpotGraalCompilerTest
mx vm -XX:-UseJVMCIClassLoader -cp @com.oracle.graal.hotspot.test com.oracle.graal.hotspot.test.MemoryUsageBenchmark
Memory analysis for a CompileTheWorld execution can also be performed. For example:
mx --vm server vm -XX:-UseJVMCIClassLoader -G:CompileTheWorldClasspath=$HOME/SPECjvm2008/SPECjvm2008.jar -cp @com.oracle.graal.hotspot.test com.oracle.graal.hotspot.test.MemoryUsageBenchmark
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
MemoryUsageBenchmark.MemoryUsageCloseable |
GraalCompilerTest.ArgSupplier, GraalCompilerTest.ResultGraalTest.MultiCauseAssertionError| Modifier and Type | Field and Description |
|---|---|
private static boolean |
verbose |
lastCompiledGraph| Constructor and Description |
|---|
MemoryUsageBenchmark() |
| Modifier and Type | Method and Description |
|---|---|
private void |
allocSpyCompilation(String methodName) |
private void |
compileAndTime(String methodName) |
static int |
complex(CharSequence cs) |
private void |
doCompilation(String methodName,
String label) |
static void |
main(String[] args) |
void |
run() |
static int |
simple(int a,
int b) |
runtimeaddMethod, after, afterTest, applyArgSuppliers, argsWithReceiver, asResolvedJavaMethod, assertConstantReturn, assertEquals, assertEquals, assertEquals, before, beforeTest, branchProbability, breakpoint, breakpoint, checkArgs, checkHighTierGraph, checkLowTierGraph, checkMidTierGraph, compile, countUnusedConstants, createLIRSuites, createSuites, editGraphBuilderConfiguration, executeActual, executeActualCheckDeopt, executeExpected, getBackend, getCanonicalGraphString, getCode, getCode, getCode, getCodeCache, getConstantReflection, getCustomGraphBuilderSuite, getDefaultGraphBuilderPlugins, getDefaultGraphBuilderSuite, getDefaultHighTierContext, getLIRSuites, getLowerer, getMetaAccess, getNodeCountExcludingUnusedConstants, getProviders, getReplacements, getResolvedJavaMethod, getResolvedJavaMethod, getResolvedJavaMethod, getSnippetReflection, getSpeculationLog, getSuites, getTarget, initializeDebugging, invoke, isArchitecture, iterationCount, lookupMethod, parseDebug, parseEager, parseEager, parseForCompile, parseProfiled, parseProfiled, referenceInvoke, supply, test, test, testAgainstExpected, testAgainstExpected, testNassertDeepEquals, assertDeepEquals, assertDeepEquals, assertDeepEquals, assertFalse, assertFalse, assertFalse, assertTrue, assertTrue, assertTrue, equalFloatsOrDoublesDelta, fail, getMethod, getMethod, getMethod, ulpsDeltaprivate static final boolean verbose
public MemoryUsageBenchmark()
public static int simple(int a, int b)
public static int complex(CharSequence cs)
private void doCompilation(String methodName, String label)
private void allocSpyCompilation(String methodName)
private void compileAndTime(String methodName)
public void run()