Startup Performance tests: tests have been refactored + a new test for a project with one java file and classLoadingCount metric's comparison has been added

GitOrigin-RevId: 734eeccd274d6178a80e8a399f74cf3a5e24cc9e
This commit is contained in:
Anna Koehler
2022-06-29 16:39:13 +02:00
committed by intellij-monorepo-bot
parent c7c2ff0c69
commit 4b3a625255

View File

@@ -334,13 +334,18 @@ data class IDETestContext(
fun warmUp(
patchVMOptions: VMOptions.() -> VMOptions = { this },
commands: Iterable<MarshallableCommand>,
runTimeout: Duration = 10.minutes
runTimeout: Duration = 10.minutes,
storeClassReport: Boolean = false
): IDEStartResult {
return runIDE(
patchVMOptions = {
val warmupReports = IDEStartupReports(paths.reportsDir / "warmUp")
enableStartupPerformanceLog(warmupReports).enableClassLoadingReport(paths.logsDir / "class-report.txt").patchVMOptions()
if (storeClassReport) {
this.enableStartupPerformanceLog(warmupReports).enableClassLoadingReport(paths.reportsDir / "warmUp" / "class-report.txt").patchVMOptions()
} else {
this
}
},
commands = testCase.commands.plus(commands),
runTimeout = runTimeout,