Struct jmmInterface_1_

Source
#[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_

Source§

fn clone(&self) -> jmmInterface_1_

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for jmmInterface_1_

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for jmmInterface_1_

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.