47 event.set_name(_shared_gc_info.name());
48 event.set_cause((u2) _shared_gc_info.cause());
49 event.set_sumOfPauses(_shared_gc_info.sum_of_pauses());
50 event.set_longestPause(_shared_gc_info.longest_pause());
51 event.set_starttime(_shared_gc_info.start_timestamp());
52 event.set_endtime(_shared_gc_info.end_timestamp());
53 event.commit();
54 }
55 }
56
57 void GCTracer::send_reference_stats_event(ReferenceType type, size_t count) const {
58 EventGCReferenceStatistics e;
59 if (e.should_commit()) {
60 e.set_gcId(_shared_gc_info.id());
61 e.set_type((u1)type);
62 e.set_count(count);
63 e.commit();
64 }
65 }
66
67 void ParallelOldTracer::send_parallel_old_event() const {
68 EventGCParallelOld e(UNTIMED);
69 if (e.should_commit()) {
70 e.set_gcId(_shared_gc_info.id());
71 e.set_densePrefix((TraceAddress)_parallel_old_gc_info.dense_prefix());
72 e.set_starttime(_shared_gc_info.start_timestamp());
73 e.set_endtime(_shared_gc_info.end_timestamp());
74 e.commit();
75 }
76 }
77
78 void YoungGCTracer::send_young_gc_event() const {
79 EventGCYoungGarbageCollection e(UNTIMED);
80 if (e.should_commit()) {
81 e.set_gcId(_shared_gc_info.id());
82 e.set_tenuringThreshold(_tenuring_threshold);
83 e.set_starttime(_shared_gc_info.start_timestamp());
84 e.set_endtime(_shared_gc_info.end_timestamp());
85 e.commit();
86 }
|
47 event.set_name(_shared_gc_info.name());
48 event.set_cause((u2) _shared_gc_info.cause());
49 event.set_sumOfPauses(_shared_gc_info.sum_of_pauses());
50 event.set_longestPause(_shared_gc_info.longest_pause());
51 event.set_starttime(_shared_gc_info.start_timestamp());
52 event.set_endtime(_shared_gc_info.end_timestamp());
53 event.commit();
54 }
55 }
56
57 void GCTracer::send_reference_stats_event(ReferenceType type, size_t count) const {
58 EventGCReferenceStatistics e;
59 if (e.should_commit()) {
60 e.set_gcId(_shared_gc_info.id());
61 e.set_type((u1)type);
62 e.set_count(count);
63 e.commit();
64 }
65 }
66
67 void GCTracer::send_metaspace_chunk_free_list_summary(GCWhen::Type when, Metaspace::MetadataType mdtype,
68 const MetaspaceChunkFreeListSummary& summary) const {
69 EventMetaspaceChunkFreeListSummary e;
70 if (e.should_commit()) {
71 e.set_gcId(_shared_gc_info.id());
72 e.set_when(when);
73 e.set_metadataType(mdtype);
74
75 e.set_specializedChunks(summary.num_specialized_chunks());
76 e.set_specializedChunksTotalSize(summary.specialized_chunks_size_in_bytes());
77
78 e.set_smallChunks(summary.num_small_chunks());
79 e.set_smallChunksTotalSize(summary.small_chunks_size_in_bytes());
80
81 e.set_mediumChunks(summary.num_medium_chunks());
82 e.set_mediumChunksTotalSize(summary.medium_chunks_size_in_bytes());
83
84 e.set_humongousChunks(summary.num_humongous_chunks());
85 e.set_humongousChunksTotalSize(summary.humongous_chunks_size_in_bytes());
86
87 e.commit();
88 }
89 }
90
91 void ParallelOldTracer::send_parallel_old_event() const {
92 EventGCParallelOld e(UNTIMED);
93 if (e.should_commit()) {
94 e.set_gcId(_shared_gc_info.id());
95 e.set_densePrefix((TraceAddress)_parallel_old_gc_info.dense_prefix());
96 e.set_starttime(_shared_gc_info.start_timestamp());
97 e.set_endtime(_shared_gc_info.end_timestamp());
98 e.commit();
99 }
100 }
101
102 void YoungGCTracer::send_young_gc_event() const {
103 EventGCYoungGarbageCollection e(UNTIMED);
104 if (e.should_commit()) {
105 e.set_gcId(_shared_gc_info.id());
106 e.set_tenuringThreshold(_tenuring_threshold);
107 e.set_starttime(_shared_gc_info.start_timestamp());
108 e.set_endtime(_shared_gc_info.end_timestamp());
109 e.commit();
110 }
|