int interpreter_throwout_count() const { if (method_counters() == NULL) { return 0; } else { return method_counters()->interpreter_throwout_count(); } }
// We are reusing interpreter_invocation_count as a holder for the previous event count! // We can do that since interpreter_invocation_count is not used in tiered. int prev_event_count() const { if (method_counters() == NULL) { return 0; } else { return method_counters()->interpreter_invocation_count(); } }
// Tracking number of breakpoints, for fullspeed debugging. // Only mutated by VM thread. u2 number_of_breakpoints() const { if (method_counters() == NULL) { return 0; } else { return method_counters()->number_of_breakpoints(); } }
int interpreter_throwout_count() const { MethodCounters* mcs = method_counters(); if (mcs == NULL) { return 0; } else { return mcs->interpreter_throwout_count(); } }
int interpreter_invocation_count() { if (TieredCompilation) { return invocation_count(); } else { MethodCounters* mcs = method_counters(); return (mcs == NULL) ? 0 : mcs->interpreter_invocation_count(); } }
// Tracking number of breakpoints, for fullspeed debugging. // Only mutated by VM thread. u2 number_of_breakpoints() const { MethodCounters* mcs = method_counters(); if (mcs == NULL) { return 0; } else { return mcs->number_of_breakpoints(); } }
int interpreter_invocation_count() { if (TieredCompilation) return invocation_count(); else return (method_counters() == NULL) ? 0 : method_counters()->interpreter_invocation_count(); }
float rate() const { return method_counters() == NULL ? 0 : method_counters()->rate(); }
jlong prev_time() const { return method_counters() == NULL ? 0 : method_counters()->prev_time(); }
// Initialization only void clear_number_of_breakpoints() { if (method_counters() != NULL) { method_counters()->clear_number_of_breakpoints(); } }
void set_rate(float rate) { MethodCounters* mcs = method_counters(); if (mcs != NULL) { mcs->set_rate(rate); } }
float rate() const { MethodCounters* mcs = method_counters(); return mcs == NULL ? 0 : mcs->rate(); }
void set_prev_time(jlong time) { MethodCounters* mcs = method_counters(); if (mcs != NULL) { mcs->set_prev_time(time); } }
jlong prev_time() const { MethodCounters* mcs = method_counters(); return mcs == NULL ? 0 : mcs->prev_time(); }
void set_prev_event_count(int count) { MethodCounters* mcs = method_counters(); if (mcs != NULL) { mcs->set_interpreter_invocation_count(count); } }
// Initialization only void clear_number_of_breakpoints() { MethodCounters* mcs = method_counters(); if (mcs != NULL) { mcs->clear_number_of_breakpoints(); } }