View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.benchmark;
5   
6   /**
7    * 
8    * @author Brian Remedios
9    */
10  public enum Benchmark {    	
11  	Rule		    (0, null),
12  	RuleChainRule   (1, null),
13  	CollectFiles    (2, "Collect files"),
14  	LoadRules 	    (3, "Load rules"),
15  	Parser 	 	    (4, "Parser"),
16  	SymbolTable     (5, "Symbol table"),
17  	DFA			    (6, "DFA"),
18  	TypeResolution  (7, "Type resolution"),
19  	RuleChainVisit  (8, "RuleChain visit"),
20  	Reporting	    (9, "Reporting"),
21  	RuleTotal	    (10, "Rule total"),
22  	RuleChainTotal  (11, "Rule chain rule total"),
23  	MeasuredTotal   (12, "Measured total"),
24  	NonMeasuredTotal(13, "Non-measured total"),
25  	TotalPMD		(14, "Total PMD");
26  	
27  	public final int index;
28  	public final String name;
29  	
30  	private Benchmark(int idx, String theName) {
31  		index = idx;
32  		name = theName;
33  	}
34  }