void RuntimeService::record_safepoint_begin() { HS_PRIVATE_SAFEPOINT_BEGIN(); // Print the time interval in which the app was executing if (PrintGCApplicationConcurrentTime && _app_timer.is_updated()) { gclog_or_tty->date_stamp(PrintGCDateStamps); gclog_or_tty->stamp(PrintGCTimeStamps); gclog_or_tty->print_cr("Application time: %3.7f seconds", last_application_time_sec()); } // update the time stamp to begin recording safepoint time _safepoint_timer.update(); _last_safepoint_sync_time_sec = 0.0; if (UsePerfData) { _total_safepoints->inc(); if (_app_timer.is_updated()) { _application_time_ticks->inc(_app_timer.ticks_since_update()); } } }
void RuntimeService::record_safepoint_begin() { #ifndef USDT2 HS_DTRACE_PROBE(hs_private, safepoint__begin); #else /* USDT2 */ HS_PRIVATE_SAFEPOINT_BEGIN(); #endif /* USDT2 */ // Print the time interval in which the app was executing if (PrintGCApplicationConcurrentTime) { gclog_or_tty->print_cr("Application time: %3.7f seconds", last_application_time_sec()); } // update the time stamp to begin recording safepoint time _safepoint_timer.update(); if (UsePerfData) { _total_safepoints->inc(); if (_app_timer.is_updated()) { _application_time_ticks->inc(_app_timer.ticks_since_update()); } } }