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,
68 Metaspace::MetadataType mdtype,
69 const MetaspaceChunkFreeListSummary& summary) const {
70 EventMetaspaceChunkFreeListSummary e;
71 if (e.should_commit()) {
72 e.set_gcId(_shared_gc_info.id());
73 e.set_when(when);
74 e.set_metadataType(mdtype);
75
76 e.set_specializedChunks(summary.num_specialized_chunks());
77 e.set_specializedChunksTotalSize(summary.specialized_chunks_size_in_bytes());
78
79 e.set_smallChunks(summary.num_small_chunks());
80 e.set_smallChunksTotalSize(summary.small_chunks_size_in_bytes());
81
82 e.set_mediumChunks(summary.num_medium_chunks());
83 e.set_mediumChunksTotalSize(summary.medium_chunks_size_in_bytes());
84
85 e.set_humongousChunks(summary.num_humongous_chunks());
86 e.set_humongousChunksTotalSize(summary.humongous_chunks_size_in_bytes());
87
88 e.commit();
89 }
90 }
91
92 void ParallelOldTracer::send_parallel_old_event() const {
93 EventGCParallelOld e(UNTIMED);
94 if (e.should_commit()) {
95 e.set_gcId(_shared_gc_info.id());
96 e.set_densePrefix((TraceAddress)_parallel_old_gc_info.dense_prefix());
97 e.set_starttime(_shared_gc_info.start_timestamp());
98 e.set_endtime(_shared_gc_info.end_timestamp());
99 e.commit();
100 }
101 }
102
103 void YoungGCTracer::send_young_gc_event() const {
104 EventGCYoungGarbageCollection e(UNTIMED);
105 if (e.should_commit()) {
106 e.set_gcId(_shared_gc_info.id());
107 e.set_tenuringThreshold(_tenuring_threshold);
108 e.set_starttime(_shared_gc_info.start_timestamp());
109 e.set_endtime(_shared_gc_info.end_timestamp());
110 e.commit();
111 }
|