equal
deleted
inserted
replaced
1119 |
1119 |
1120 jlong SafepointTracing::_last_safepoint_begin_time_ns = 0; |
1120 jlong SafepointTracing::_last_safepoint_begin_time_ns = 0; |
1121 jlong SafepointTracing::_last_safepoint_sync_time_ns = 0; |
1121 jlong SafepointTracing::_last_safepoint_sync_time_ns = 0; |
1122 jlong SafepointTracing::_last_safepoint_cleanup_time_ns = 0; |
1122 jlong SafepointTracing::_last_safepoint_cleanup_time_ns = 0; |
1123 jlong SafepointTracing::_last_safepoint_end_time_ns = 0; |
1123 jlong SafepointTracing::_last_safepoint_end_time_ns = 0; |
|
1124 jlong SafepointTracing::_last_safepoint_end_time_epoch_ms = 0; |
1124 jlong SafepointTracing::_last_app_time_ns = 0; |
1125 jlong SafepointTracing::_last_app_time_ns = 0; |
1125 int SafepointTracing::_nof_threads = 0; |
1126 int SafepointTracing::_nof_threads = 0; |
1126 int SafepointTracing::_nof_running = 0; |
1127 int SafepointTracing::_nof_running = 0; |
1127 int SafepointTracing::_page_trap = 0; |
1128 int SafepointTracing::_page_trap = 0; |
1128 VM_Operation::VMOp_Type SafepointTracing::_current_type; |
1129 VM_Operation::VMOp_Type SafepointTracing::_current_type; |
1131 uint64_t SafepointTracing::_op_count[VM_Operation::VMOp_Terminating] = {0}; |
1132 uint64_t SafepointTracing::_op_count[VM_Operation::VMOp_Terminating] = {0}; |
1132 |
1133 |
1133 void SafepointTracing::init() { |
1134 void SafepointTracing::init() { |
1134 // Application start |
1135 // Application start |
1135 _last_safepoint_end_time_ns = os::javaTimeNanos(); |
1136 _last_safepoint_end_time_ns = os::javaTimeNanos(); |
|
1137 // amount of time since epoch |
|
1138 _last_safepoint_end_time_epoch_ms = os::javaTimeMillis(); |
1136 } |
1139 } |
1137 |
1140 |
1138 // Helper method to print the header. |
1141 // Helper method to print the header. |
1139 static void print_header(outputStream* st) { |
1142 static void print_header(outputStream* st) { |
1140 // The number of spaces is significant here, and should match the format |
1143 // The number of spaces is significant here, and should match the format |
1230 _last_safepoint_cleanup_time_ns = os::javaTimeNanos(); |
1233 _last_safepoint_cleanup_time_ns = os::javaTimeNanos(); |
1231 } |
1234 } |
1232 |
1235 |
1233 void SafepointTracing::end() { |
1236 void SafepointTracing::end() { |
1234 _last_safepoint_end_time_ns = os::javaTimeNanos(); |
1237 _last_safepoint_end_time_ns = os::javaTimeNanos(); |
|
1238 // amount of time since epoch |
|
1239 _last_safepoint_end_time_epoch_ms = os::javaTimeMillis(); |
1235 |
1240 |
1236 if (_max_sync_time < (_last_safepoint_sync_time_ns - _last_safepoint_begin_time_ns)) { |
1241 if (_max_sync_time < (_last_safepoint_sync_time_ns - _last_safepoint_begin_time_ns)) { |
1237 _max_sync_time = _last_safepoint_sync_time_ns - _last_safepoint_begin_time_ns; |
1242 _max_sync_time = _last_safepoint_sync_time_ns - _last_safepoint_begin_time_ns; |
1238 } |
1243 } |
1239 if (_max_vmop_time < (_last_safepoint_end_time_ns - _last_safepoint_sync_time_ns)) { |
1244 if (_max_vmop_time < (_last_safepoint_end_time_ns - _last_safepoint_sync_time_ns)) { |