Skip to content

Commit 4fecf96

Browse files
committed
adjust to openjdk/jmh#115
1 parent 0039010 commit 4fecf96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compilation/src/main/scala/scala/tools/nsc/ThreadCpuTimeProfiler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static class NormTimeResult extends Result<NormTimeResult> {
8989
private final long ops;
9090

9191
public NormTimeResult(String prefix, long cycles, long instructions) {
92-
super(ResultRole.SECONDARY, Defaults.PREFIX + prefix, of(Double.NaN), "---", AggregationPolicy.AVG);
92+
super(ResultRole.SECONDARY, prefix, of(Double.NaN), "---", AggregationPolicy.AVG);
9393
this.prefix = prefix;
9494
this.scalar = cycles;
9595
this.ops = instructions;
@@ -111,7 +111,7 @@ public NormTimeResult aggregate(Collection<NormTimeResult> results) {
111111

112112
@Override
113113
protected Aggregator<NormTimeResult> getIterationAggregator() {
114-
NormTimeResultAggregator normTimeResultAggregator = new NormTimeResultAggregator(Defaults.PREFIX + prefix);
114+
NormTimeResultAggregator normTimeResultAggregator = new NormTimeResultAggregator(prefix);
115115
return (Aggregator<NormTimeResult>) (Object) normTimeResultAggregator;
116116
}
117117

0 commit comments

Comments
 (0)