Added a Benchmark for Metrics
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user