骏烈
2017-12-27 17:31:43 +08:00
parent 16d65a9820
commit 57888c9798
2 changed files with 5 additions and 7 deletions

View File

@@ -80,13 +80,11 @@ class SourceCodeProcessor(private val configuration: PMDConfiguration) {
} }
private fun usesDFA(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) { private fun usesDFA(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) {
if (ruleSets.usesDFA(languageVersion.language)) { val start = System.nanoTime()
val start = System.nanoTime() val dataFlowFacade = languageVersion.languageVersionHandler.dataFlowFacade
val dataFlowFacade = languageVersion.languageVersionHandler.dataFlowFacade dataFlowFacade.start(rootNode)
dataFlowFacade.start(rootNode) val end = System.nanoTime()
val end = System.nanoTime() Benchmarker.mark(Benchmark.DFA, end - start, 0)
Benchmarker.mark(Benchmark.DFA, end - start, 0)
}
} }
private fun usesTypeResolution(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) { private fun usesTypeResolution(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 354 B