void AllocTracer::send_allocation_requiring_gc_event(size_t size, const GCId& gcId) { EventAllocationRequiringGC event; if (event.should_commit()) { event.set_gcId(gcId.id()); event.set_size(size); event.commit(); } }
void send_phase(PausePhase* pause) { T event(UNTIMED); if (event.should_commit()) { event.set_gcId(_gc_id.id()); event.set_name(pause->name()); event.set_starttime(pause->start()); event.set_endtime(pause->end()); event.commit(); } }
void visit(const GCHeapSummary* heap_summary) const { const VirtualSpaceSummary& heap_space = heap_summary->heap(); EventGCHeapSummary e; if (e.should_commit()) { e.set_gcId(_gc_id.id()); e.set_when((u1)_when); e.set_heapSpace(to_trace_struct(heap_space)); e.set_heapUsed(heap_summary->used()); e.commit(); } }
void visit(const PSHeapSummary* ps_heap_summary) const { visit((GCHeapSummary*)ps_heap_summary); const VirtualSpaceSummary& old_summary = ps_heap_summary->old(); const SpaceSummary& old_space = ps_heap_summary->old_space(); const VirtualSpaceSummary& young_summary = ps_heap_summary->young(); const SpaceSummary& eden_space = ps_heap_summary->eden(); const SpaceSummary& from_space = ps_heap_summary->from(); const SpaceSummary& to_space = ps_heap_summary->to(); EventPSHeapSummary e; if (e.should_commit()) { e.set_gcId(_gc_id.id()); e.set_when((u1)_when); e.set_oldSpace(to_trace_struct(ps_heap_summary->old())); e.set_oldObjectSpace(to_trace_struct(ps_heap_summary->old_space())); e.set_youngSpace(to_trace_struct(ps_heap_summary->young())); e.set_edenSpace(to_trace_struct(ps_heap_summary->eden())); e.set_fromSpace(to_trace_struct(ps_heap_summary->from())); e.set_toSpace(to_trace_struct(ps_heap_summary->to())); e.commit(); } }