sun.management.HotspotRuntime クラスの各メソッドは, RuntimeService クラス内の値を取得するか, あるいは runtime に関連した PerfData の値を取得するだけ.
(なお, このクラスは JSR-174 には存在しない Sun Microsystems の独自拡張機能)
sun.management.HotspotRuntime.getSafepointCount() -> sun.management.VMManagementImpl.getSafepointCount() -> Java_sun_management_VMManagementImpl_getSafepointCount() -> jmm_GetLongAttribute() (JMM_SAFEPOINT_COUNT を引数として呼び出される) -> get_long_attribute() -> RuntimeService::safepoint_count()
sun.management.HotspotRuntime.getTotalSafepointTime() -> sun.management.VMManagementImpl.getTotalSafepointTime() -> Java_sun_management_VMManagementImpl_getTotalSafepointTime() -> jmm_GetLongAttribute() (JMM_TOTAL_STOPPED_TIME_MS を引数として呼び出される) -> get_long_attribute() -> RuntimeService::safepoint_time_ms()
sun.management.HotspotRuntime.getSafepointSyncTime() -> sun.management.VMManagementImpl.getSafepointSyncTime() -> Java_sun_management_VMManagementImpl_getSafepointSyncTime() -> jmm_GetLongAttribute() (JMM_TOTAL_SAFEPOINTSYNC_TIME_MS を引数として呼び出される) -> get_long_attribute() -> RuntimeService::safepoint_sync_time_ms()
sun.management.HotspotRuntime.getInternalRuntimeCounters() -> sun.management.VMManagementImpl.getInternalCounters() -> (See: here for details)
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.