void contended_enter_begin() { check_and_reset_timer(); _contended_enter_timer.start(); }
void monitor_wait_begin() { check_and_reset_timer(); _monitor_wait_timer.start(); }
void thread_sleep_begin() { check_and_reset_timer(); _sleep_timer.start(); }
void resume() { if (_active) _t.start(); }
inline void resume() { if (!UsePerfData) return; _t.start(); }
inline PerfTraceTime(PerfLongCounter* timerp, int* recursion_counter) : _timerp(timerp), _recursion_counter(recursion_counter) { if (!UsePerfData || (_recursion_counter != NULL && (*_recursion_counter)++ > 0)) return; _t.start(); }
inline PerfTraceTime(PerfLongCounter* timerp) : _timerp(timerp), _recursion_counter(NULL) { if (!UsePerfData) return; _t.start(); }
~GCPauseTimer() { _timer->start(); }