mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +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() {
|
||||
initOpenTelemetry();
|
||||
cleanupOutdatedMetrics();
|
||||
this.tracer = TelemetryManager.getInstance().getTracer(new Scope("performanceUnitTests", null));
|
||||
this.tracer = TelemetryManager.getInstance().getTracer(new Scope("benchmarkUnitTests", null));
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -239,7 +239,7 @@ public class BenchmarkTestInfoImpl implements BenchmarkTestInfo {
|
||||
callingTestMethod = tryToFindCallingTestMethodByNamePattern();
|
||||
if (callingTestMethod == null) {
|
||||
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;
|
||||
|
||||
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;
|
||||
if (iterationType.equals(IterationMode.WARMUP)) {
|
||||
@@ -368,7 +368,7 @@ public class BenchmarkTestInfoImpl implements BenchmarkTestInfo {
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user