--- old/src/share/vm/gc/shared/gcTraceSend.cpp 2015-08-13 17:40:06.057527008 +0200 +++ new/src/share/vm/gc/shared/gcTraceSend.cpp 2015-08-13 17:40:05.979524695 +0200 @@ -234,6 +234,40 @@ e.commit(); } } + +void G1NewTracer::send_young_evacuation_statistics(const G1EvacSummary& summary) const { + EventGCG1EvacuationYoungStatistics surv_evt; + if (surv_evt.should_commit()) { + surv_evt.set_gcId(GCId::peek().id()); + surv_evt.set_allocated(summary.allocated() * HeapWordSize); + surv_evt.set_wasted(summary.wasted() * HeapWordSize); + surv_evt.set_used(summary.used() * HeapWordSize); + surv_evt.set_undoWaste(summary.undo_wasted() * HeapWordSize); + surv_evt.set_regionEndWaste(summary.region_end_waste() * HeapWordSize); + surv_evt.set_regionsRefilled(summary.regions_filled()); + surv_evt.set_directAllocated(summary.direct_allocated() * HeapWordSize); + surv_evt.set_failureUsed(summary.failure_used() * HeapWordSize); + surv_evt.set_failureWaste(summary.failure_waste() * HeapWordSize); + surv_evt.commit(); + } +} + +void G1NewTracer::send_old_evacuation_statistics(const G1EvacSummary& summary) const { + EventGCG1EvacuationOldStatistics old_evt; + if (old_evt.should_commit()) { + old_evt.set_gcId(GCId::peek().id()); + old_evt.set_allocated(summary.allocated() * HeapWordSize); + old_evt.set_wasted(summary.wasted() * HeapWordSize); + old_evt.set_used(summary.used() * HeapWordSize); + old_evt.set_undoWaste(summary.undo_wasted() * HeapWordSize); + old_evt.set_regionEndWaste(summary.region_end_waste() * HeapWordSize); + old_evt.set_regionsRefilled(summary.regions_filled()); + old_evt.set_directAllocated(summary.direct_allocated() * HeapWordSize); + old_evt.set_failureUsed(summary.failure_used() * HeapWordSize); + old_evt.set_failureWaste(summary.failure_waste() * HeapWordSize); + old_evt.commit(); + } +} #endif static TraceStructVirtualSpace to_trace_struct(const VirtualSpaceSummary& summary) {