mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[benchmarks] Comments and logs
GitOrigin-RevId: 4e06aade956924fcead9a2cf956b21e606b97fa1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cabfb514ae
commit
2d6832e224
@@ -138,7 +138,7 @@ public class BenchmarkTestInfoImpl implements BenchmarkTestInfo {
|
|||||||
public BenchmarkTestInfoImpl() {
|
public BenchmarkTestInfoImpl() {
|
||||||
initOpenTelemetry();
|
initOpenTelemetry();
|
||||||
cleanupOutdatedMetrics();
|
cleanupOutdatedMetrics();
|
||||||
this.tracer = TelemetryManager.getInstance().getTracer(new Scope("performanceUnitTests", null));
|
this.tracer = TelemetryManager.getInstance().getTracer(new Scope("benchmarkUnitTests", null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -239,7 +239,7 @@ public class BenchmarkTestInfoImpl implements BenchmarkTestInfo {
|
|||||||
callingTestMethod = tryToFindCallingTestMethodByNamePattern();
|
callingTestMethod = tryToFindCallingTestMethodByNamePattern();
|
||||||
if (callingTestMethod == null) {
|
if (callingTestMethod == null) {
|
||||||
throw new AssertionError(
|
throw new AssertionError(
|
||||||
"Couldn't manage to detect the calling test method. Please use one of the overloads of com.intellij.testFramework.PerformanceTestInfo.start"
|
"Couldn't manage to detect the calling test method. Please use one of the overloads of com.intellij.tools.ide.metrics.benchmark.BenchmarkTestInfoImpl.start()"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -304,7 +304,7 @@ public class BenchmarkTestInfoImpl implements BenchmarkTestInfo {
|
|||||||
this.uniqueTestName = uniqueTestName;
|
this.uniqueTestName = uniqueTestName;
|
||||||
|
|
||||||
if (PlatformTestUtil.COVERAGE_ENABLED_BUILD) return;
|
if (PlatformTestUtil.COVERAGE_ENABLED_BUILD) return;
|
||||||
System.out.printf("Starting performance test \"%s\" in mode: %s%n", uniqueTestName, iterationType);
|
System.out.printf("Starting benchmark test \"%s\" in mode: %s%n", uniqueTestName, iterationType);
|
||||||
|
|
||||||
int maxIterationsNumber;
|
int maxIterationsNumber;
|
||||||
if (iterationType.equals(IterationMode.WARMUP)) {
|
if (iterationType.equals(IterationMode.WARMUP)) {
|
||||||
@@ -368,7 +368,7 @@ public class BenchmarkTestInfoImpl implements BenchmarkTestInfo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Throwable t) {
|
catch (Throwable t) {
|
||||||
System.err.println("Something unexpected happened during publishing performance metrics");
|
System.err.println("Something unexpected happened during publishing benchmark metrics");
|
||||||
throw t;
|
throw t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user