mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8036703: Add trace event with statistics for the metaspace chunk free lists
Reviewed-by: stefank, mgerdin, coleenp, egahlin
This commit is contained in:
parent
0a79ba6680
commit
853fffb2cb
11 changed files with 265 additions and 10 deletions
|
@ -30,6 +30,7 @@
|
|||
#include "gc_implementation/shared/gcWhen.hpp"
|
||||
#include "gc_implementation/shared/copyFailedInfo.hpp"
|
||||
#include "memory/allocation.hpp"
|
||||
#include "memory/metaspace.hpp"
|
||||
#include "memory/referenceType.hpp"
|
||||
#if INCLUDE_ALL_GCS
|
||||
#include "gc_implementation/g1/g1YCTypes.hpp"
|
||||
|
@ -41,6 +42,7 @@ typedef uint GCId;
|
|||
|
||||
class EvacuationInfo;
|
||||
class GCHeapSummary;
|
||||
class MetaspaceChunkFreeListSummary;
|
||||
class MetaspaceSummary;
|
||||
class PSHeapSummary;
|
||||
class ReferenceProcessorStats;
|
||||
|
@ -124,7 +126,8 @@ class GCTracer : public ResourceObj {
|
|||
public:
|
||||
void report_gc_start(GCCause::Cause cause, const Ticks& timestamp);
|
||||
void report_gc_end(const Ticks& timestamp, TimePartitions* time_partitions);
|
||||
void report_gc_heap_summary(GCWhen::Type when, const GCHeapSummary& heap_summary, const MetaspaceSummary& meta_space_summary) const;
|
||||
void report_gc_heap_summary(GCWhen::Type when, const GCHeapSummary& heap_summary) const;
|
||||
void report_metaspace_summary(GCWhen::Type when, const MetaspaceSummary& metaspace_summary) const;
|
||||
void report_gc_reference_stats(const ReferenceProcessorStats& rp) const;
|
||||
void report_object_count_after_gc(BoolObjectClosure* object_filter) NOT_SERVICES_RETURN;
|
||||
bool has_reported_gc_start() const;
|
||||
|
@ -138,6 +141,7 @@ class GCTracer : public ResourceObj {
|
|||
void send_garbage_collection_event() const;
|
||||
void send_gc_heap_summary_event(GCWhen::Type when, const GCHeapSummary& heap_summary) const;
|
||||
void send_meta_space_summary_event(GCWhen::Type when, const MetaspaceSummary& meta_space_summary) const;
|
||||
void send_metaspace_chunk_free_list_summary(GCWhen::Type when, Metaspace::MetadataType mdtype, const MetaspaceChunkFreeListSummary& summary) const;
|
||||
void send_reference_stats_event(ReferenceType type, size_t count) const;
|
||||
void send_phase_events(TimePartitions* time_partitions) const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue