equal
deleted
inserted
replaced
29 #include "gc/shared/gcTrace.hpp" |
29 #include "gc/shared/gcTrace.hpp" |
30 #include "gc/shared/gcWhen.hpp" |
30 #include "gc/shared/gcWhen.hpp" |
31 #include "runtime/os.hpp" |
31 #include "runtime/os.hpp" |
32 #include "trace/traceBackend.hpp" |
32 #include "trace/traceBackend.hpp" |
33 #include "trace/tracing.hpp" |
33 #include "trace/tracing.hpp" |
|
34 #include "tracefiles/traceEventClasses.hpp" |
34 #include "utilities/macros.hpp" |
35 #include "utilities/macros.hpp" |
35 #if INCLUDE_ALL_GCS |
36 #if INCLUDE_G1GC |
36 #include "gc/g1/evacuationInfo.hpp" |
37 #include "gc/g1/evacuationInfo.hpp" |
37 #include "gc/g1/g1YCTypes.hpp" |
38 #include "gc/g1/g1YCTypes.hpp" |
38 #include "tracefiles/traceEventClasses.hpp" |
|
39 #endif |
39 #endif |
40 |
40 |
41 // All GC dependencies against the trace framework is contained within this file. |
41 // All GC dependencies against the trace framework is contained within this file. |
42 |
42 |
43 typedef uintptr_t TraceAddress; |
43 typedef uintptr_t TraceAddress; |
186 e.set_gcId(GCId::current()); |
186 e.set_gcId(GCId::current()); |
187 e.commit(); |
187 e.commit(); |
188 } |
188 } |
189 } |
189 } |
190 |
190 |
191 #if INCLUDE_ALL_GCS |
191 #if INCLUDE_G1GC |
192 void G1NewTracer::send_g1_young_gc_event() { |
192 void G1NewTracer::send_g1_young_gc_event() { |
193 EventG1GarbageCollection e(UNTIMED); |
193 EventG1GarbageCollection e(UNTIMED); |
194 if (e.should_commit()) { |
194 if (e.should_commit()) { |
195 e.set_gcId(GCId::current()); |
195 e.set_gcId(GCId::current()); |
196 e.set_type(_g1_young_gc_info.type()); |
196 e.set_type(_g1_young_gc_info.type()); |
309 evt.set_predictionActive(prediction_active); |
309 evt.set_predictionActive(prediction_active); |
310 evt.commit(); |
310 evt.commit(); |
311 } |
311 } |
312 } |
312 } |
313 |
313 |
314 #endif |
314 #endif // INCLUDE_G1GC |
315 |
315 |
316 static TraceStructVirtualSpace to_trace_struct(const VirtualSpaceSummary& summary) { |
316 static TraceStructVirtualSpace to_trace_struct(const VirtualSpaceSummary& summary) { |
317 TraceStructVirtualSpace space; |
317 TraceStructVirtualSpace space; |
318 space.set_start((TraceAddress)summary.start()); |
318 space.set_start((TraceAddress)summary.start()); |
319 space.set_committedEnd((TraceAddress)summary.committed_end()); |
319 space.set_committedEnd((TraceAddress)summary.committed_end()); |