Disable profilerConfig for AHeavyInspectionsPerformanceTest

This commit is contained in:
Vladimir Dolzhenko
2020-09-10 16:23:51 +02:00
parent e3b07120bb
commit 38854ce40b
@@ -12,12 +12,13 @@ import org.jetbrains.kotlin.idea.perf.util.ExternalProject
import org.jetbrains.kotlin.idea.perf.util.lastPathSegment import org.jetbrains.kotlin.idea.perf.util.lastPathSegment
import org.jetbrains.kotlin.idea.perf.util.suite import org.jetbrains.kotlin.idea.perf.util.suite
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners import org.jetbrains.kotlin.test.JUnit3RunnerWithInners
import org.junit.Ignore
import org.junit.runner.RunWith import org.junit.runner.RunWith
/** /**
* Run the only specified exceptions on the selected files in Kotling project. * Run the only specified exceptions on the selected files in Kotlin project.
*
* Used for 'The Kotlin sources: kt files heavy inspections' graph. * Used for 'The Kotlin sources: kt files heavy inspections' graph.
*
* @TODO Should be run before typing tests as the testing project becomes unusable afterwards. * @TODO Should be run before typing tests as the testing project becomes unusable afterwards.
*/ */
@RunWith(JUnit3RunnerWithInners::class) @RunWith(JUnit3RunnerWithInners::class)
@@ -56,13 +57,14 @@ class AHeavyInspectionsPerformanceTest : UsefulTestCase() {
} }
} }
@Ignore
fun testUnusedSymbolLocalInspection() { fun testUnusedSymbolLocalInspection() {
suite { suite {
config.warmup = 1 with(config) {
config.iterations = 2 warmup = 1
config.profilerConfig.enabled = true iterations = 2
config.profilerConfig.tracing = true //profilerConfig.enabled = true
//profilerConfig.tracing = true
}
app { app {
project(ExternalProject.KOTLIN_AUTO) { project(ExternalProject.KOTLIN_AUTO) {
for (inspection in listOfInspections.sliceArray(0 until 1)) { for (inspection in listOfInspections.sliceArray(0 until 1)) {
@@ -88,13 +90,14 @@ class AHeavyInspectionsPerformanceTest : UsefulTestCase() {
ExternalProject.autoOpenAction("../unused") ExternalProject.autoOpenAction("../unused")
) )
@Ignore
fun testSingleInspection1() { fun testSingleInspection1() {
suite { suite {
config.warmup = 0 with(config) {
config.iterations = 1 warmup = 0
config.profilerConfig.enabled = true iterations = 1
config.profilerConfig.tracing = true //profilerConfig.enabled = true
//profilerConfig.tracing = true
}
app { app {
project(UNUSED_AUTO) { project(UNUSED_AUTO) {
for (inspection in listOfInspections.sliceArray(0..1)) { for (inspection in listOfInspections.sliceArray(0..1)) {