Added a Benchmark for Metrics

This commit is contained in:
oowekyala
2017-05-22 18:57:53 +02:00
parent 0be4a2c09a
commit cad0697798
2 changed files with 9 additions and 8 deletions

View File

@ -151,7 +151,7 @@ public class SourceCodeProcessor {
languageVersion.getLanguageVersionHandler().getTypeResolutionFacade(configuration.getClassLoader())
.start(rootNode);
long end = System.nanoTime();
Benchmarker.mark(Benchmark.TypeResolution, end - start, 0);
Benchmarker.mark(Benchmark.Metrics, end - start, 0);
}
}

View File

@ -17,13 +17,14 @@ public enum Benchmark {
SymbolTable(5, "Symbol table"),
DFA(6, "DFA"),
TypeResolution(7, "Type resolution"),
RuleChainVisit(8, "RuleChain visit"),
Reporting(9, "Reporting"),
RuleTotal(10, "Rule total"),
RuleChainTotal(11, "Rule chain rule total"),
MeasuredTotal(12, "Measured total"),
NonMeasuredTotal(13, "Non-measured total"),
TotalPMD(14, "Total PMD");
Metrics(8, "Metrics visitor"),
RuleChainVisit(9, "RuleChain visit"),
Reporting(10, "Reporting"),
RuleTotal(11, "Rule total"),
RuleChainTotal(12, "Rule chain rule total"),
MeasuredTotal(13, "Measured total"),
NonMeasuredTotal(14, "Non-measured total"),
TotalPMD(15, "Total PMD");
public final int index;
public final String name;