Fixed dependencies for performance tests
This commit is contained in:
@@ -194,6 +194,7 @@ dependencies {
|
||||
performanceTestCompile(sourceSets["test"].output)
|
||||
performanceTestCompile(sourceSets["main"].output)
|
||||
performanceTestCompile(project(":nj2k"))
|
||||
performanceTestCompile(project(":idea:idea-gradle-tooling-api"))
|
||||
performanceTestCompile(intellijPluginDep("gradle"))
|
||||
performanceTestRuntime(sourceSets["performanceTest"].output)
|
||||
}
|
||||
@@ -220,6 +221,7 @@ projectTest(taskName = "performanceTest") {
|
||||
jvmArgs?.removeAll { it.startsWith("-Xmx") }
|
||||
|
||||
maxHeapSize = "3g"
|
||||
jvmArgs("-Didea.debug.mode=true")
|
||||
jvmArgs("-XX:SoftRefLRUPolicyMSPerMB=50")
|
||||
jvmArgs(
|
||||
"-XX:ReservedCodeCacheSize=240m",
|
||||
|
||||
+1
-1
@@ -213,7 +213,7 @@ abstract class AbstractPerformanceProjectsTest : UsefulTestCase() {
|
||||
}.get()
|
||||
|
||||
val modules = ModuleManager.getInstance(project).modules
|
||||
assertTrue("project has to have at least one module", modules.isNotEmpty())
|
||||
assertTrue("project $name has to have at least one module", modules.isNotEmpty())
|
||||
|
||||
logMessage { "modules of $name: ${modules.map { m -> m.name }}" }
|
||||
|
||||
|
||||
@@ -235,8 +235,11 @@ class Stats(
|
||||
warmUpStatInfosArray.filterNotNull().map { it[ERROR_KEY] as? Throwable }.firstOrNull()?.let { throw it }
|
||||
}
|
||||
|
||||
private fun <SV, TV> mainPhase(phaseData: PhaseData<SV, TV>): Array<StatInfos> =
|
||||
phase(phaseData, "")
|
||||
private fun <SV, TV> mainPhase(phaseData: PhaseData<SV, TV>): Array<StatInfos> {
|
||||
val statInfosArray = phase(phaseData, "")
|
||||
statInfosArray.filterNotNull().map { it[ERROR_KEY] as? Throwable }.firstOrNull()?.let { throw it }
|
||||
return statInfosArray
|
||||
}
|
||||
|
||||
private fun <SV, TV> phase(phaseData: PhaseData<SV, TV>, phaseName: String): Array<StatInfos> {
|
||||
val statInfosArray = Array<StatInfos>(phaseData.iterations) { null }
|
||||
|
||||
Reference in New Issue
Block a user