Added a Benchmark for Metrics
This commit is contained in:
@ -151,7 +151,7 @@ public class SourceCodeProcessor {
|
|||||||
languageVersion.getLanguageVersionHandler().getTypeResolutionFacade(configuration.getClassLoader())
|
languageVersion.getLanguageVersionHandler().getTypeResolutionFacade(configuration.getClassLoader())
|
||||||
.start(rootNode);
|
.start(rootNode);
|
||||||
long end = System.nanoTime();
|
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"),
|
SymbolTable(5, "Symbol table"),
|
||||||
DFA(6, "DFA"),
|
DFA(6, "DFA"),
|
||||||
TypeResolution(7, "Type resolution"),
|
TypeResolution(7, "Type resolution"),
|
||||||
RuleChainVisit(8, "RuleChain visit"),
|
Metrics(8, "Metrics visitor"),
|
||||||
Reporting(9, "Reporting"),
|
RuleChainVisit(9, "RuleChain visit"),
|
||||||
RuleTotal(10, "Rule total"),
|
Reporting(10, "Reporting"),
|
||||||
RuleChainTotal(11, "Rule chain rule total"),
|
RuleTotal(11, "Rule total"),
|
||||||
MeasuredTotal(12, "Measured total"),
|
RuleChainTotal(12, "Rule chain rule total"),
|
||||||
NonMeasuredTotal(13, "Non-measured total"),
|
MeasuredTotal(13, "Measured total"),
|
||||||
TotalPMD(14, "Total PMD");
|
NonMeasuredTotal(14, "Non-measured total"),
|
||||||
|
TotalPMD(15, "Total PMD");
|
||||||
|
|
||||||
public final int index;
|
public final int index;
|
||||||
public final String name;
|
public final String name;
|
||||||
|
Reference in New Issue
Block a user