--- old/src/share/vm/gc/shared/gcTrace.hpp 2015-08-17 12:55:17.870113598 +0200 +++ new/src/share/vm/gc/shared/gcTrace.hpp 2015-08-17 12:55:17.791111232 +0200 @@ -37,6 +37,7 @@ #include "utilities/ticks.hpp" #if INCLUDE_ALL_GCS #include "gc/g1/g1YCTypes.hpp" +#include "gc/shared/gcHeapSummary.hpp" #endif class EvacuationInfo; @@ -45,6 +46,7 @@ class MetaspaceSummary; class PSHeapSummary; class G1HeapSummary; +struct TraceStructG1EvacStats; class ReferenceProcessorStats; class TimePartitions; class BoolObjectClosure; @@ -257,10 +259,16 @@ void report_evacuation_info(EvacuationInfo* info); void report_evacuation_failed(EvacuationFailedInfo& ef_info); + void report_evacuation_statistics(const G1EvacSummary& young_summary, const G1EvacSummary& old_summary) const; private: void send_g1_young_gc_event(); void send_evacuation_info_event(EvacuationInfo* info); void send_evacuation_failed_event(const EvacuationFailedInfo& ef_info) const; + + void send_young_evacuation_statistics(const G1EvacSummary& summary) const; + void send_old_evacuation_statistics(const G1EvacSummary& summary) const; + + TraceStructG1EvacStats create_g1_evacstats(const G1EvacSummary& summary) const; }; #endif