class ciMethod; template <typename> class GrowableArray; class Method; class EventCompilation; class EventCompilationFailure; class EventCompilerInlining; class EventCompilerPhase; struct JfrStructCalleeMethod;
class CompilerEvent : AllStatic { public: static jlong ticksNow() { // Using Ticks for consistent usage outside JFR folder.
JFR_ONLY(return JfrTime::is_ft_enabled() ? Ticks::now().ft_value() : Ticks::now().value();) NOT_JFR_RETURN_(0L);
}
class CompilationEvent : AllStatic { public: staticvoid post(EventCompilation& event, int compile_id, CompilerType type, Method* method, int compile_level, bool success, bool is_osr, int code_size, int inlined_bytecodes) NOT_JFR_RETURN();
};
class CompilationFailureEvent : AllStatic { public: staticvoid post(EventCompilationFailure& event, int compile_id, constchar* reason) NOT_JFR_RETURN();
};
class PhaseEvent : AllStatic { friendclass CompilerPhaseTypeConstant; public:
// Gets a unique identifier for `phase_name`, computing and registering it first if necessary. // If `may_exist` is true, then current registrations are searched first. If false, then // there must not be an existing registration for `phase_name`. // If `use_strdup` is true, then `phase_name` is strdup'ed before registration. // If `sync` is true, then access to the registration table is synchronized. staticint get_phase_id(constchar* phase_name, bool may_exist, bool use_strdup, bool sync) NOT_JFR_RETURN_(-1);
staticvoid post(EventCompilerPhase& event, const Ticks& start_time, int phase, int compile_id, int level) NOT_JFR_RETURN(); staticvoid post(EventCompilerPhase& event, jlong start_time, int phase, int compile_id, int level) {
JFR_ONLY(post(event, Ticks(start_time), phase, compile_id, level);)
}
};
class InlineEvent : AllStatic { staticvoid post(EventCompilerInlining& event, int compile_id, Method* caller, constJfrStructCalleeMethod& callee, bool success, constchar* msg, int bci) NOT_JFR_RETURN(); public: staticvoid post(EventCompilerInlining& event, int compile_id, Method* caller, Method* callee, bool success, constchar* msg, int bci) NOT_JFR_RETURN(); staticvoid post(EventCompilerInlining& event, int compile_id, Method* caller, ciMethod* callee, bool success, constchar* msg, int bci) NOT_JFR_RETURN();
};
}; #endif// SHARE_COMPILER_COMPILEREVENT_HPP
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.