use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MXDiagnostic")]
pub struct MXCPUExceptionDiagnostic;
#[cfg(feature = "MXDiagnostic")]
unsafe impl ClassType for MXCPUExceptionDiagnostic {
#[inherits(NSObject)]
type Super = MXDiagnostic;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MXDiagnostic")]
unsafe impl NSCoding for MXCPUExceptionDiagnostic {}
#[cfg(feature = "MXDiagnostic")]
unsafe impl NSObjectProtocol for MXCPUExceptionDiagnostic {}
#[cfg(feature = "MXDiagnostic")]
unsafe impl NSSecureCoding for MXCPUExceptionDiagnostic {}
extern_methods!(
#[cfg(feature = "MXDiagnostic")]
unsafe impl MXCPUExceptionDiagnostic {
#[cfg(feature = "MXCallStackTree")]
#[method_id(@__retain_semantics Other callStackTree)]
pub unsafe fn callStackTree(&self) -> Id<MXCallStackTree>;
#[method_id(@__retain_semantics Other totalCPUTime)]
pub unsafe fn totalCPUTime(&self) -> Id<NSMeasurement<NSUnitDuration>>;
#[method_id(@__retain_semantics Other totalSampledTime)]
pub unsafe fn totalSampledTime(&self) -> Id<NSMeasurement<NSUnitDuration>>;
}
);
extern_methods!(
#[cfg(feature = "MXDiagnostic")]
unsafe impl MXCPUExceptionDiagnostic {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);