< prev index next >

src/share/vm/gc_implementation/shared/objectCountEventSender.hpp

Print this page

        

*** 30,43 **** #include "utilities/macros.hpp" #if INCLUDE_SERVICES class KlassInfoEntry; - class Ticks; class ObjectCountEventSender : public AllStatic { public: static void send(const KlassInfoEntry* entry, GCId gc_id, const Ticks& timestamp); static bool should_send_event(); }; #endif // INCLUDE_SERVICES --- 30,50 ---- #include "utilities/macros.hpp" #if INCLUDE_SERVICES class KlassInfoEntry; class ObjectCountEventSender : public AllStatic { + static bool _should_send_requestable_event; + + template <typename T> + static void send_event_if_enabled(Klass* klass, GCId gc_id, jlong count, julong size, const Ticks& timestamp); + public: + static void enable_requestable_event(); + static void disable_requestable_event(); + static void send(const KlassInfoEntry* entry, GCId gc_id, const Ticks& timestamp); static bool should_send_event(); }; #endif // INCLUDE_SERVICES
< prev index next >