equal
deleted
inserted
replaced
198 e.set_endtime(_shared_gc_info.end_timestamp()); |
198 e.set_endtime(_shared_gc_info.end_timestamp()); |
199 e.commit(); |
199 e.commit(); |
200 } |
200 } |
201 } |
201 } |
202 |
202 |
203 void G1MMUTracer::send_g1_mmu_event(double timeSlice, double gcTime, double maxTime) { |
203 void G1MMUTracer::send_g1_mmu_event(double time_slice_ms, double gc_time_ms, double max_time_ms) { |
204 EventG1MMU e; |
204 EventG1MMU e; |
205 if (e.should_commit()) { |
205 if (e.should_commit()) { |
206 e.set_gcId(GCId::current()); |
206 e.set_gcId(GCId::current()); |
207 e.set_timeSlice(timeSlice); |
207 e.set_timeSlice(time_slice_ms); |
208 e.set_gcTime(gcTime); |
208 e.set_gcTime(gc_time_ms); |
209 e.set_maxGcTime(maxTime); |
209 e.set_pauseTarget(max_time_ms); |
210 e.commit(); |
210 e.commit(); |
211 } |
211 } |
212 } |
212 } |
213 |
213 |
214 void G1NewTracer::send_evacuation_info_event(EvacuationInfo* info) { |
214 void G1NewTracer::send_evacuation_info_event(EvacuationInfo* info) { |
279 evt.set_gcId(GCId::current()); |
279 evt.set_gcId(GCId::current()); |
280 evt.set_threshold(threshold); |
280 evt.set_threshold(threshold); |
281 evt.set_targetOccupancy(target_occupancy); |
281 evt.set_targetOccupancy(target_occupancy); |
282 evt.set_thresholdPercentage(target_occupancy > 0 ? ((double)threshold / target_occupancy) : 0.0); |
282 evt.set_thresholdPercentage(target_occupancy > 0 ? ((double)threshold / target_occupancy) : 0.0); |
283 evt.set_currentOccupancy(current_occupancy); |
283 evt.set_currentOccupancy(current_occupancy); |
284 evt.set_lastAllocationSize(last_allocation_size); |
284 evt.set_recentMutatorAllocationSize(last_allocation_size); |
285 evt.set_lastAllocationDuration(last_allocation_duration); |
285 evt.set_recentMutatorDuration(last_allocation_duration * MILLIUNITS); |
286 evt.set_lastAllocationRate(last_allocation_duration != 0.0 ? last_allocation_size / last_allocation_duration : 0.0); |
286 evt.set_recentAllocationRate(last_allocation_duration != 0.0 ? last_allocation_size / last_allocation_duration : 0.0); |
287 evt.set_lastMarkingLength(last_marking_length); |
287 evt.set_lastMarkingDuration(last_marking_length * MILLIUNITS); |
288 evt.commit(); |
288 evt.commit(); |
289 } |
289 } |
290 } |
290 } |
291 |
291 |
292 void G1NewTracer::send_adaptive_ihop_statistics(size_t threshold, |
292 void G1NewTracer::send_adaptive_ihop_statistics(size_t threshold, |
299 EventG1AdaptiveIHOP evt; |
299 EventG1AdaptiveIHOP evt; |
300 if (evt.should_commit()) { |
300 if (evt.should_commit()) { |
301 evt.set_gcId(GCId::current()); |
301 evt.set_gcId(GCId::current()); |
302 evt.set_threshold(threshold); |
302 evt.set_threshold(threshold); |
303 evt.set_thresholdPercentage(internal_target_occupancy > 0 ? ((double)threshold / internal_target_occupancy) : 0.0); |
303 evt.set_thresholdPercentage(internal_target_occupancy > 0 ? ((double)threshold / internal_target_occupancy) : 0.0); |
304 evt.set_internalTargetOccupancy(internal_target_occupancy); |
304 evt.set_ihopTargetOccupancy(internal_target_occupancy); |
305 evt.set_currentOccupancy(current_occupancy); |
305 evt.set_currentOccupancy(current_occupancy); |
306 evt.set_additionalBufferSize(additional_buffer_size); |
306 evt.set_additionalBufferSize(additional_buffer_size); |
307 evt.set_predictedAllocationRate(predicted_allocation_rate); |
307 evt.set_predictedAllocationRate(predicted_allocation_rate); |
308 evt.set_predictedMarkingLength(predicted_marking_length); |
308 evt.set_predictedMarkingDuration(predicted_marking_length * MILLIUNITS); |
309 evt.set_predictionActive(prediction_active); |
309 evt.set_predictionActive(prediction_active); |
310 evt.commit(); |
310 evt.commit(); |
311 } |
311 } |
312 } |
312 } |
313 |
313 |