string LongDesc() { string ret = "A highly advanced weapon of Poleepkwa design, "+ "meant to be worn."; if(!active) return ret; if(cache < percent_of(10, maxcache)) ret += " A %^RED%^red%^RESET%^ light is illuminated on it."; else if(cache < percent_of(50, maxcache)) ret += " A %^YELLOW%^yellow%^RESET%^ light is illuminated on it."; else if(cache < percent_of(80, maxcache)) ret += " A %^GREEN%^green%^RESET%^ light is illuminated on it."; else ret += " A %^BLUE%^blue%^RESET%^ light is illuminated on it."; return ret; }
string LongDesc(){ string ret = "A highly advanced armored suit of Poleepkwa design, "+ "used by elements of the Host whose role requires them to have "+ "some protection from environmental hazards."; if(!active) return ret; if(charge < percent_of(10, maxcharge)) ret += " A %^RED%^red%^RESET%^ light is illuminated on it."; else if(charge < percent_of(50, maxcharge)) ret += " A %^YELLOW%^yellow%^RESET%^ light is illuminated on it."; else if(charge < percent_of(80, maxcharge)) ret += " A %^GREEN%^green%^RESET%^ light is illuminated on it."; else ret += " A %^BLUE%^blue%^RESET%^ light is illuminated on it."; return ret; }
void G1AdaptiveIHOPControl::print() { G1IHOPControl::print(); size_t actual_target = actual_target_threshold(); log_debug(gc, ihop)("Adaptive IHOP information (value update), threshold: " SIZE_FORMAT "B (%1.2f), internal target occupancy: " SIZE_FORMAT "B," " predicted old gen allocation rate: %1.2f, predicted marking phase length: %1.2f, prediction active: %s", get_conc_mark_start_threshold(), percent_of(get_conc_mark_start_threshold(), actual_target), actual_target, _predictor->get_new_prediction(&_allocation_rate_s), _predictor->get_new_prediction(&_marking_times_s), have_enough_data_for_prediction() ? "true" : "false"); }
void G1AdaptiveIHOPControl::print() { G1IHOPControl::print(); size_t actual_target = actual_target_threshold(); log_debug(gc, ihop)("Adaptive IHOP information (value update), threshold: " SIZE_FORMAT "B (%1.2f), internal target occupancy: " SIZE_FORMAT "B, " "occupancy: " SIZE_FORMAT "B, additional buffer size: " SIZE_FORMAT "B, predicted old gen allocation rate: %1.2fB/s, " "predicted marking phase length: %1.2fms, prediction active: %s", get_conc_mark_start_threshold(), percent_of(get_conc_mark_start_threshold(), actual_target), actual_target, G1CollectedHeap::heap()->used(), _last_unrestrained_young_size, _predictor->get_new_prediction(&_allocation_rate_s), _predictor->get_new_prediction(&_marking_times_s) * 1000.0, have_enough_data_for_prediction() ? "true" : "false"); }
double code_root_elems_percent_of(size_t total) { return percent_of(_code_root_elems, total); }
double code_root_mem_size_percent_of(size_t total) { return percent_of(_code_root_mem_size, total); }
double cards_occupied_percent_of(size_t total) { return percent_of(_cards_occupied, total); }
double rs_mem_size_percent_of(size_t total) { return percent_of(_rs_mem_size, total); }