/* * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions.
*/
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
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
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 ist noch experimentell.