#[repr(C)]pub struct jmmInterface_1_ {Show 40 fields
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_void
§reserved2: *mut c_void
§GetVersion: 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_void
§DumpThreads: 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§
Source§impl Clone for jmmInterface_1_
impl Clone for jmmInterface_1_
Source§fn clone(&self) -> jmmInterface_1_
fn clone(&self) -> jmmInterface_1_
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for jmmInterface_1_
impl Debug for jmmInterface_1_
impl Copy for jmmInterface_1_
Auto Trait Implementations§
impl Freeze for jmmInterface_1_
impl RefUnwindSafe for jmmInterface_1_
impl !Send for jmmInterface_1_
impl !Sync for jmmInterface_1_
impl Unpin for jmmInterface_1_
impl UnwindSafe for jmmInterface_1_
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more