28 |
28 |
29 #ifdef TIERED |
29 #ifdef TIERED |
30 // Print an event. |
30 // Print an event. |
31 void AdvancedThresholdPolicy::print_specific(EventType type, methodHandle mh, methodHandle imh, |
31 void AdvancedThresholdPolicy::print_specific(EventType type, methodHandle mh, methodHandle imh, |
32 int bci, CompLevel level) { |
32 int bci, CompLevel level) { |
33 tty->print(" rate: "); |
33 tty->print(" rate="); |
34 if (mh->prev_time() == 0) tty->print("n/a"); |
34 if (mh->prev_time() == 0) tty->print("n/a"); |
35 else tty->print("%f", mh->rate()); |
35 else tty->print("%f", mh->rate()); |
36 |
36 |
37 tty->print(" k: %.2lf,%.2lf", threshold_scale(CompLevel_full_profile, Tier3LoadFeedback), |
37 tty->print(" k=%.2lf,%.2lf", threshold_scale(CompLevel_full_profile, Tier3LoadFeedback), |
38 threshold_scale(CompLevel_full_optimization, Tier4LoadFeedback)); |
38 threshold_scale(CompLevel_full_optimization, Tier4LoadFeedback)); |
39 |
39 |
40 } |
40 } |
41 |
41 |
42 void AdvancedThresholdPolicy::initialize() { |
42 void AdvancedThresholdPolicy::initialize() { |
43 // Turn on ergonomic compiler count selection |
43 // Turn on ergonomic compiler count selection |