runtimeService.cpp revision 4170
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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.
*
*/
#include "precompiled.hpp"
#include "classfile/classLoader.hpp"
#include "services/attachListener.hpp"
#include "services/management.hpp"
#include "services/runtimeService.hpp"
#include "utilities/dtrace.hpp"
#include "utilities/exceptions.hpp"
#ifndef USDT2
#endif /* !USDT2 */
void RuntimeService::init() {
// Make sure the VM version is initialized
if (UsePerfData) {
// create performance counters for jvm_version and its capabilities
// I/O interruption related counters
// thread signaling via os::interrupt()
// OS_INTRPT via "check before" in _INTERRUPTIBLE
// OS_INTRPT via "check during" in _INTERRUPTIBLE
// The capabilities counter is a binary representation of the VM capabilities in string.
// This string respresentation simplifies the implementation of the client side
// to parse the value.
char capabilities[65];
}
}
void RuntimeService::record_safepoint_begin() {
#ifndef USDT2
#else /* USDT2 */
#endif /* USDT2 */
// Print the time interval in which the app was executing
}
// update the time stamp to begin recording safepoint time
if (UsePerfData) {
_total_safepoints->inc();
if (_app_timer.is_updated()) {
}
}
}
void RuntimeService::record_safepoint_synchronized() {
if (UsePerfData) {
}
}
void RuntimeService::record_safepoint_end() {
#ifndef USDT2
#else /* USDT2 */
#endif /* USDT2 */
// Print the time interval for which the app was stopped
// during the current safepoint operation.
"were stopped: %3.7f seconds",
}
// update the time stamp to begin recording app time
_app_timer.update();
if (UsePerfData) {
}
}
void RuntimeService::record_application_start() {
// update the time stamp to begin recording app time
_app_timer.update();
}
// Don't need to record application end because we currently
// exit at a safepoint and record_safepoint_begin() handles updating
// the application time counter at VM exit.
return UsePerfData ?
}
return UsePerfData ?
}
return UsePerfData ?
}
return UsePerfData ?
}
if (UsePerfData) {
}
}
if (UsePerfData) {
}
}
if (UsePerfData) {
}
}