comparison src/share/vm/services/runtimeService.cpp @ 14518:d8041d695d19

Merged with jdk9/dev/hotspot changeset 3812c088b945
author twisti
date Tue, 11 Mar 2014 18:45:59 -0700
parents e6195383bcaf
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
14141:f97c5ec83832 14518:d8041d695d19
28 #include "services/management.hpp" 28 #include "services/management.hpp"
29 #include "services/runtimeService.hpp" 29 #include "services/runtimeService.hpp"
30 #include "utilities/dtrace.hpp" 30 #include "utilities/dtrace.hpp"
31 #include "utilities/exceptions.hpp" 31 #include "utilities/exceptions.hpp"
32 #include "utilities/macros.hpp" 32 #include "utilities/macros.hpp"
33
34 #ifndef USDT2
35 HS_DTRACE_PROBE_DECL(hs_private, safepoint__begin);
36 HS_DTRACE_PROBE_DECL(hs_private, safepoint__end);
37 #endif /* !USDT2 */
38 33
39 #if INCLUDE_MANAGEMENT 34 #if INCLUDE_MANAGEMENT
40 TimeStamp RuntimeService::_app_timer; 35 TimeStamp RuntimeService::_app_timer;
41 TimeStamp RuntimeService::_safepoint_timer; 36 TimeStamp RuntimeService::_safepoint_timer;
42 PerfCounter* RuntimeService::_sync_time_ticks = NULL; 37 PerfCounter* RuntimeService::_sync_time_ticks = NULL;
110 capabilities, CHECK); 105 capabilities, CHECK);
111 } 106 }
112 } 107 }
113 108
114 void RuntimeService::record_safepoint_begin() { 109 void RuntimeService::record_safepoint_begin() {
115 #ifndef USDT2
116 HS_DTRACE_PROBE(hs_private, safepoint__begin);
117 #else /* USDT2 */
118 HS_PRIVATE_SAFEPOINT_BEGIN(); 110 HS_PRIVATE_SAFEPOINT_BEGIN();
119 #endif /* USDT2 */
120 111
121 // Print the time interval in which the app was executing 112 // Print the time interval in which the app was executing
122 if (PrintGCApplicationConcurrentTime && _app_timer.is_updated()) { 113 if (PrintGCApplicationConcurrentTime && _app_timer.is_updated()) {
123 gclog_or_tty->date_stamp(PrintGCDateStamps); 114 gclog_or_tty->date_stamp(PrintGCDateStamps);
124 gclog_or_tty->stamp(PrintGCTimeStamps); 115 gclog_or_tty->stamp(PrintGCTimeStamps);
141 _sync_time_ticks->inc(_safepoint_timer.ticks_since_update()); 132 _sync_time_ticks->inc(_safepoint_timer.ticks_since_update());
142 } 133 }
143 } 134 }
144 135
145 void RuntimeService::record_safepoint_end() { 136 void RuntimeService::record_safepoint_end() {
146 #ifndef USDT2
147 HS_DTRACE_PROBE(hs_private, safepoint__end);
148 #else /* USDT2 */
149 HS_PRIVATE_SAFEPOINT_END(); 137 HS_PRIVATE_SAFEPOINT_END();
150 #endif /* USDT2 */
151 138
152 // Print the time interval for which the app was stopped 139 // Print the time interval for which the app was stopped
153 // during the current safepoint operation. 140 // during the current safepoint operation.
154 if (PrintGCApplicationStoppedTime) { 141 if (PrintGCApplicationStoppedTime) {
155 gclog_or_tty->date_stamp(PrintGCDateStamps); 142 gclog_or_tty->date_stamp(PrintGCDateStamps);