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