< prev index next >
src/share/vm/gc/shared/gcTraceSend.cpp
Print this page
rev 8823 : imported patch 8133530-add-jfr-event-for-evacuation
*** 232,241 ****
--- 232,275 ----
e.set_gcId(_shared_gc_info.gc_id().id());
e.set_data(to_trace_struct(ef_info));
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) {
TraceStructVirtualSpace space;
space.set_start((TraceAddress)summary.start());
< prev index next >