Struct unity_native_plugin_sys::IUnityProfiler [−][src]
#[repr(C)]pub struct IUnityProfiler {
pub EmitEvent: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, eventType: UnityProfilerMarkerEventType, eventDataCount: u16, eventData: *const UnityProfilerMarkerData)>,
pub IsEnabled: Option<unsafe extern "system" fn() -> c_int>,
pub IsAvailable: Option<unsafe extern "system" fn() -> c_int>,
pub CreateMarker: Option<unsafe extern "system" fn(desc: *mut *const UnityProfilerMarkerDesc, name: *const c_char, category: UnityProfilerCategoryId, flags: UnityProfilerMarkerFlags, eventDataCount: c_int) -> c_int>,
pub SetMarkerMetadataName: Option<unsafe extern "system" fn(desc: *const UnityProfilerMarkerDesc, index: c_int, metadataName: *const c_char, metadataType: UnityProfilerMarkerDataType, metadataUnit: UnityProfilerMarkerDataUnit) -> c_int>,
pub RegisterThread: Option<unsafe extern "system" fn(threadId: *mut UnityProfilerThreadId, groupName: *const c_char, name: *const c_char) -> c_int>,
pub UnregisterThread: Option<unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> c_int>,
}
Fields
EmitEvent: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, eventType: UnityProfilerMarkerEventType, eventDataCount: u16, eventData: *const UnityProfilerMarkerData)>
IsEnabled: Option<unsafe extern "system" fn() -> c_int>
IsAvailable: Option<unsafe extern "system" fn() -> c_int>
CreateMarker: Option<unsafe extern "system" fn(desc: *mut *const UnityProfilerMarkerDesc, name: *const c_char, category: UnityProfilerCategoryId, flags: UnityProfilerMarkerFlags, eventDataCount: c_int) -> c_int>
SetMarkerMetadataName: Option<unsafe extern "system" fn(desc: *const UnityProfilerMarkerDesc, index: c_int, metadataName: *const c_char, metadataType: UnityProfilerMarkerDataType, metadataUnit: UnityProfilerMarkerDataUnit) -> c_int>
RegisterThread: Option<unsafe extern "system" fn(threadId: *mut UnityProfilerThreadId, groupName: *const c_char, name: *const c_char) -> c_int>
UnregisterThread: Option<unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> c_int>
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for IUnityProfiler
impl Send for IUnityProfiler
impl Sync for IUnityProfiler
impl Unpin for IUnityProfiler
impl UnwindSafe for IUnityProfiler
Blanket Implementations
Mutably borrows from an owned value. Read more