< prev index next >
src/share/vm/gc_implementation/shared/gcTrace.cpp
Print this page
*** 31,41 ****
#include "gc_implementation/shared/objectCountEventSender.hpp"
#include "memory/heapInspection.hpp"
#include "memory/referenceProcessorStats.hpp"
#include "runtime/os.hpp"
#include "utilities/globalDefinitions.hpp"
! #include "utilities/ticks.inline.hpp"
#if INCLUDE_ALL_GCS
#include "gc_implementation/g1/evacuationInfo.hpp"
#endif
--- 31,41 ----
#include "gc_implementation/shared/objectCountEventSender.hpp"
#include "memory/heapInspection.hpp"
#include "memory/referenceProcessorStats.hpp"
#include "runtime/os.hpp"
#include "utilities/globalDefinitions.hpp"
! #include "utilities/ticks.hpp"
#if INCLUDE_ALL_GCS
#include "gc_implementation/g1/evacuationInfo.hpp"
#endif
*** 170,179 ****
--- 170,203 ----
void YoungGCTracer::report_tenuring_threshold(const uint tenuring_threshold) {
_tenuring_threshold = tenuring_threshold;
}
+ bool YoungGCTracer::should_report_promotion_events() const {
+ return should_report_promotion_in_new_plab_event() ||
+ should_report_promotion_outside_plab_event();
+ }
+
+ bool YoungGCTracer::should_report_promotion_in_new_plab_event() const {
+ return should_send_promotion_in_new_plab_event();
+ }
+
+ bool YoungGCTracer::should_report_promotion_outside_plab_event() const {
+ return should_send_promotion_outside_plab_event();
+ }
+
+ void YoungGCTracer::report_promotion_in_new_plab_event(Klass* klass, size_t obj_size,
+ uint age, bool tenured,
+ size_t plab_size) const {
+ send_promotion_in_new_plab_event(klass, obj_size, age, tenured, plab_size);
+ }
+
+ void YoungGCTracer::report_promotion_outside_plab_event(Klass* klass, size_t obj_size,
+ uint age, bool tenured) const {
+ send_promotion_outside_plab_event(klass, obj_size, age, tenured);
+ }
+
void OldGCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
assert_set_gc_id();
GCTracer::report_gc_end_impl(timestamp, time_partitions);
send_old_gc_event();
*** 197,206 ****
--- 221,236 ----
send_concurrent_mode_failure_event();
}
#if INCLUDE_ALL_GCS
+ void G1MMUTracer::report_mmu(double time_slice_sec, double gc_time_sec, double max_time_sec) {
+ send_g1_mmu_event(time_slice_sec * MILLIUNITS,
+ gc_time_sec * MILLIUNITS,
+ max_time_sec * MILLIUNITS);
+ }
+
void G1NewTracer::report_yc_type(G1YCType type) {
assert_set_gc_id();
_g1_young_gc_info.set_type(type);
}
< prev index next >