use crate::common::*;
use crate::Foundation::*;
use crate::MetricKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MetricKit_MXCPUExceptionDiagnostic")]
pub struct MXCPUExceptionDiagnostic;
#[cfg(feature = "MetricKit_MXCPUExceptionDiagnostic")]
unsafe impl ClassType for MXCPUExceptionDiagnostic {
#[inherits(NSObject)]
type Super = MXDiagnostic;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MetricKit_MXCPUExceptionDiagnostic")]
unsafe impl NSCoding for MXCPUExceptionDiagnostic {}
#[cfg(feature = "MetricKit_MXCPUExceptionDiagnostic")]
unsafe impl NSObjectProtocol for MXCPUExceptionDiagnostic {}
#[cfg(feature = "MetricKit_MXCPUExceptionDiagnostic")]
unsafe impl NSSecureCoding for MXCPUExceptionDiagnostic {}
extern_methods!(
#[cfg(feature = "MetricKit_MXCPUExceptionDiagnostic")]
unsafe impl MXCPUExceptionDiagnostic {
#[cfg(feature = "MetricKit_MXCallStackTree")]
#[method_id(@__retain_semantics Other callStackTree)]
pub unsafe fn callStackTree(&self) -> Id<MXCallStackTree>;
#[cfg(all(
feature = "Foundation_NSMeasurement",
feature = "Foundation_NSUnitDuration"
))]
#[method_id(@__retain_semantics Other totalCPUTime)]
pub unsafe fn totalCPUTime(&self) -> Id<NSMeasurement<NSUnitDuration>>;
#[cfg(all(
feature = "Foundation_NSMeasurement",
feature = "Foundation_NSUnitDuration"
))]
#[method_id(@__retain_semantics Other totalSampledTime)]
pub unsafe fn totalSampledTime(&self) -> Id<NSMeasurement<NSUnitDuration>>;
}
);
extern_methods!(
#[cfg(feature = "MetricKit_MXCPUExceptionDiagnostic")]
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>;
}
);