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