Mercurial > hg > gc-bench
changeset 62:04bf515935c1
runtime.* tests: collect only the counters that are printed.
author | shade |
---|---|
date | Fri, 23 Dec 2016 18:51:40 +0100 |
parents | 8df264030545 |
children | 4016779f803c |
files | src/main/java/org/openjdk/gcbench/tests/MachineCntTest.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/openjdk/gcbench/tests/MachineCntTest.java Fri Dec 23 17:35:00 2016 +0100 +++ b/src/main/java/org/openjdk/gcbench/tests/MachineCntTest.java Fri Dec 23 18:51:40 2016 +0100 @@ -36,8 +36,8 @@ pw.printf("%-35s %-25s %-25s %-25s %n", "Performance", + "Cycles", "Instructions", - "Cycles", "Branches" ); @@ -52,7 +52,7 @@ .warmupTime(TimeValue.seconds(1)) .measurementIterations(1) .measurementTime(TimeValue.seconds(3)) - .addProfiler(LinuxPerfNormProfiler.class); + .addProfiler(LinuxPerfNormProfiler.class, "events=cycles,instructions,branches"); Object keyVal = -1; @@ -99,8 +99,8 @@ pw.printf("%-35s %-25s %-25s %-25s%n", shortVal(prim), + shortVal(sec.get("cycles")), shortVal(sec.get("instructions")), - shortVal(sec.get("cycles")), shortVal(sec.get("branches")) ); } catch (RunnerException e) {