40
41 void G1ErgoVerbose::set_enabled(ErgoHeuristic n, bool enabled) {
42 assert(0 <= n && n < ErgoHeuristicNum, "pre-condition");
43 _enabled[n] = enabled;
44 }
45
46 void G1ErgoVerbose::set_enabled(bool enabled) {
47 for (int n = 0; n < ErgoHeuristicNum; n += 1) {
48 set_enabled((ErgoHeuristic) n, enabled);
49 }
50 }
51
52 const char* G1ErgoVerbose::to_string(int tag) {
53 ErgoHeuristic n = extract_heuristic(tag);
54 switch (n) {
55 case ErgoHeapSizing: return "Heap Sizing";
56 case ErgoCSetConstruction: return "CSet Construction";
57 case ErgoConcCycles: return "Concurrent Cycles";
58 case ErgoMixedGCs: return "Mixed GCs";
59 case ErgoTiming: return "Timing";
60 default:
61 ShouldNotReachHere();
62 // Keep the Windows compiler happy
63 return NULL;
64 }
65 }
|
40
41 void G1ErgoVerbose::set_enabled(ErgoHeuristic n, bool enabled) {
42 assert(0 <= n && n < ErgoHeuristicNum, "pre-condition");
43 _enabled[n] = enabled;
44 }
45
46 void G1ErgoVerbose::set_enabled(bool enabled) {
47 for (int n = 0; n < ErgoHeuristicNum; n += 1) {
48 set_enabled((ErgoHeuristic) n, enabled);
49 }
50 }
51
52 const char* G1ErgoVerbose::to_string(int tag) {
53 ErgoHeuristic n = extract_heuristic(tag);
54 switch (n) {
55 case ErgoHeapSizing: return "Heap Sizing";
56 case ErgoCSetConstruction: return "CSet Construction";
57 case ErgoConcCycles: return "Concurrent Cycles";
58 case ErgoMixedGCs: return "Mixed GCs";
59 case ErgoTiming: return "Timing";
60 case ErgoIHOP: return "IHOP";
61 default:
62 ShouldNotReachHere();
63 // Keep the Windows compiler happy
64 return NULL;
65 }
66 }
|