[][src]Struct jvm_rs::jmm::jmmInterface_1_

#[repr(C)]pub struct jmmInterface_1_ {
    pub reserved1: *mut c_void,
    pub reserved2: *mut c_void,
    pub GetVersion: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jint>,
    pub GetOptionalSupport: Option<unsafe extern "C" fn(env: *mut JNIEnv, support_ptr: *mut jmmOptionalSupport) -> jint>,
    pub GetThreadInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, maxDepth: jint, infoArray: jobjectArray) -> jint>,
    pub GetMemoryPools: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject) -> jobjectArray>,
    pub GetMemoryManagers: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobjectArray>,
    pub GetMemoryPoolUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobject>,
    pub GetPeakMemoryPoolUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobject>,
    pub GetOneThreadAllocatedMemory: Option<unsafe extern "C" fn(env: *mut JNIEnv, thread_id: jlong) -> jlong>,
    pub GetThreadAllocatedMemory: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, sizeArray: jlongArray)>,
    pub GetMemoryUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, heap: jboolean) -> jobject>,
    pub GetLongAttribute: Option<unsafe extern "C" fn(env: *mut JNIEnv, obj: jobject, att: jmmLongAttribute) -> jlong>,
    pub GetBoolAttribute: Option<unsafe extern "C" fn(env: *mut JNIEnv, att: jmmBoolAttribute) -> jboolean>,
    pub SetBoolAttribute: Option<unsafe extern "C" fn(env: *mut JNIEnv, att: jmmBoolAttribute, flag: jboolean) -> jboolean>,
    pub GetLongAttributes: Option<unsafe extern "C" fn(env: *mut JNIEnv, obj: jobject, atts: *mut jmmLongAttribute, count: jint, result: *mut jlong) -> jint>,
    pub FindCircularBlockedThreads: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jobjectArray>,
    pub GetThreadCpuTime: Option<unsafe extern "C" fn(env: *mut JNIEnv, thread_id: jlong) -> jlong>,
    pub GetVMGlobalNames: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jobjectArray>,
    pub GetVMGlobals: Option<unsafe extern "C" fn(env: *mut JNIEnv, names: jobjectArray, globals: *mut jmmVMGlobal, count: jint) -> jint>,
    pub GetInternalThreadTimes: Option<unsafe extern "C" fn(env: *mut JNIEnv, names: jobjectArray, times: jlongArray) -> jint>,
    pub ResetStatistic: Option<unsafe extern "C" fn(env: *mut JNIEnv, obj: jvalue, type_: jmmStatisticType) -> jboolean>,
    pub SetPoolSensor: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject, type_: jmmThresholdType, sensor: jobject)>,
    pub SetPoolThreshold: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject, type_: jmmThresholdType, threshold: jlong) -> jlong>,
    pub GetPoolCollectionUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobject>,
    pub GetGCExtAttributeInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject, ext_info: *mut jmmExtAttributeInfo, count: jint) -> jint>,
    pub GetLastGCStat: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject, gc_stat: *mut jmmGCStat)>,
    pub GetThreadCpuTimeWithKind: Option<unsafe extern "C" fn(env: *mut JNIEnv, thread_id: jlong, user_sys_cpu_time: jboolean) -> jlong>,
    pub GetThreadCpuTimesWithKind: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, timeArray: jlongArray, user_sys_cpu_time: jboolean)>,
    pub DumpHeap0: Option<unsafe extern "C" fn(env: *mut JNIEnv, outputfile: jstring, live: jboolean) -> jint>,
    pub FindDeadlocks: Option<unsafe extern "C" fn(env: *mut JNIEnv, object_monitors_only: jboolean) -> jobjectArray>,
    pub SetVMGlobal: Option<unsafe extern "C" fn(env: *mut JNIEnv, flag_name: jstring, new_value: jvalue)>,
    pub reserved6: *mut c_void,
    pub DumpThreads: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, lockedMonitors: jboolean, lockedSynchronizers: jboolean, maxDepth: jint) -> jobjectArray>,
    pub SetGCNotificationEnabled: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject, enabled: jboolean)>,
    pub GetDiagnosticCommands: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jobjectArray>,
    pub GetDiagnosticCommandInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, cmds: jobjectArray, infoArray: *mut dcmdInfo)>,
    pub GetDiagnosticCommandArgumentsInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, commandName: jstring, infoArray: *mut dcmdArgInfo)>,
    pub ExecuteDiagnosticCommand: Option<unsafe extern "C" fn(env: *mut JNIEnv, command: jstring) -> jstring>,
    pub SetDiagnosticFrameworkNotificationEnabled: Option<unsafe extern "C" fn(env: *mut JNIEnv, enabled: jboolean)>,
}

Fields

reserved1: *mut c_voidreserved2: *mut c_voidGetVersion: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jint>GetOptionalSupport: Option<unsafe extern "C" fn(env: *mut JNIEnv, support_ptr: *mut jmmOptionalSupport) -> jint>GetThreadInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, maxDepth: jint, infoArray: jobjectArray) -> jint>GetMemoryPools: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject) -> jobjectArray>GetMemoryManagers: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobjectArray>GetMemoryPoolUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobject>GetPeakMemoryPoolUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobject>GetOneThreadAllocatedMemory: Option<unsafe extern "C" fn(env: *mut JNIEnv, thread_id: jlong) -> jlong>GetThreadAllocatedMemory: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, sizeArray: jlongArray)>GetMemoryUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, heap: jboolean) -> jobject>GetLongAttribute: Option<unsafe extern "C" fn(env: *mut JNIEnv, obj: jobject, att: jmmLongAttribute) -> jlong>GetBoolAttribute: Option<unsafe extern "C" fn(env: *mut JNIEnv, att: jmmBoolAttribute) -> jboolean>SetBoolAttribute: Option<unsafe extern "C" fn(env: *mut JNIEnv, att: jmmBoolAttribute, flag: jboolean) -> jboolean>GetLongAttributes: Option<unsafe extern "C" fn(env: *mut JNIEnv, obj: jobject, atts: *mut jmmLongAttribute, count: jint, result: *mut jlong) -> jint>FindCircularBlockedThreads: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jobjectArray>GetThreadCpuTime: Option<unsafe extern "C" fn(env: *mut JNIEnv, thread_id: jlong) -> jlong>GetVMGlobalNames: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jobjectArray>GetVMGlobals: Option<unsafe extern "C" fn(env: *mut JNIEnv, names: jobjectArray, globals: *mut jmmVMGlobal, count: jint) -> jint>GetInternalThreadTimes: Option<unsafe extern "C" fn(env: *mut JNIEnv, names: jobjectArray, times: jlongArray) -> jint>ResetStatistic: Option<unsafe extern "C" fn(env: *mut JNIEnv, obj: jvalue, type_: jmmStatisticType) -> jboolean>SetPoolSensor: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject, type_: jmmThresholdType, sensor: jobject)>SetPoolThreshold: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject, type_: jmmThresholdType, threshold: jlong) -> jlong>GetPoolCollectionUsage: Option<unsafe extern "C" fn(env: *mut JNIEnv, pool: jobject) -> jobject>GetGCExtAttributeInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject, ext_info: *mut jmmExtAttributeInfo, count: jint) -> jint>GetLastGCStat: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject, gc_stat: *mut jmmGCStat)>GetThreadCpuTimeWithKind: Option<unsafe extern "C" fn(env: *mut JNIEnv, thread_id: jlong, user_sys_cpu_time: jboolean) -> jlong>GetThreadCpuTimesWithKind: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, timeArray: jlongArray, user_sys_cpu_time: jboolean)>DumpHeap0: Option<unsafe extern "C" fn(env: *mut JNIEnv, outputfile: jstring, live: jboolean) -> jint>FindDeadlocks: Option<unsafe extern "C" fn(env: *mut JNIEnv, object_monitors_only: jboolean) -> jobjectArray>SetVMGlobal: Option<unsafe extern "C" fn(env: *mut JNIEnv, flag_name: jstring, new_value: jvalue)>reserved6: *mut c_voidDumpThreads: Option<unsafe extern "C" fn(env: *mut JNIEnv, ids: jlongArray, lockedMonitors: jboolean, lockedSynchronizers: jboolean, maxDepth: jint) -> jobjectArray>SetGCNotificationEnabled: Option<unsafe extern "C" fn(env: *mut JNIEnv, mgr: jobject, enabled: jboolean)>GetDiagnosticCommands: Option<unsafe extern "C" fn(env: *mut JNIEnv) -> jobjectArray>GetDiagnosticCommandInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, cmds: jobjectArray, infoArray: *mut dcmdInfo)>GetDiagnosticCommandArgumentsInfo: Option<unsafe extern "C" fn(env: *mut JNIEnv, commandName: jstring, infoArray: *mut dcmdArgInfo)>ExecuteDiagnosticCommand: Option<unsafe extern "C" fn(env: *mut JNIEnv, command: jstring) -> jstring>SetDiagnosticFrameworkNotificationEnabled: Option<unsafe extern "C" fn(env: *mut JNIEnv, enabled: jboolean)>

Trait Implementations

impl Clone for jmmInterface_1_[src]

impl Copy for jmmInterface_1_[src]

impl Debug for jmmInterface_1_[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.