Mercurial > hg > graal-jvmci-8
diff src/share/vm/gc_implementation/shared/gcTrace.cpp @ 17771:9fdaa79b0c27
8036703: Add trace event with statistics for the metaspace chunk free lists
Reviewed-by: stefank, mgerdin, coleenp, egahlin
author | ehelin |
---|---|
date | Fri, 21 Mar 2014 10:31:51 +0100 |
parents | 86e6d691f2e1 |
children | 0982ec23da03 |
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/shared/gcTrace.cpp Fri Mar 21 10:28:07 2014 +0100 +++ b/src/share/vm/gc_implementation/shared/gcTrace.cpp Fri Mar 21 10:31:51 2014 +0100 @@ -139,11 +139,21 @@ } #endif // INCLUDE_SERVICES -void GCTracer::report_gc_heap_summary(GCWhen::Type when, const GCHeapSummary& heap_summary, const MetaspaceSummary& meta_space_summary) const { +void GCTracer::report_gc_heap_summary(GCWhen::Type when, const GCHeapSummary& heap_summary) const { assert_set_gc_id(); send_gc_heap_summary_event(when, heap_summary); - send_meta_space_summary_event(when, meta_space_summary); +} + +void GCTracer::report_metaspace_summary(GCWhen::Type when, const MetaspaceSummary& summary) const { + assert_set_gc_id(); + + send_meta_space_summary_event(when, summary); + + send_metaspace_chunk_free_list_summary(when, Metaspace::NonClassType, summary.metaspace_chunk_free_list_summary()); + if (UseCompressedClassPointers) { + send_metaspace_chunk_free_list_summary(when, Metaspace::ClassType, summary.class_chunk_free_list_summary()); + } } void YoungGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {