objc2_metric_kit/generated/
MXCPUExceptionDiagnostic.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(MXDiagnostic, NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 #[cfg(feature = "MXDiagnostic")]
20 pub struct MXCPUExceptionDiagnostic;
21);
22
23#[cfg(feature = "MXDiagnostic")]
24unsafe impl NSCoding for MXCPUExceptionDiagnostic {}
25
26#[cfg(feature = "MXDiagnostic")]
27unsafe impl NSObjectProtocol for MXCPUExceptionDiagnostic {}
28
29#[cfg(feature = "MXDiagnostic")]
30unsafe impl NSSecureCoding for MXCPUExceptionDiagnostic {}
31
32#[cfg(feature = "MXDiagnostic")]
33impl MXCPUExceptionDiagnostic {
34 extern_methods!(
35 #[cfg(feature = "MXCallStackTree")]
36 #[unsafe(method(callStackTree))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn callStackTree(&self) -> Retained<MXCallStackTree>;
40
41 #[unsafe(method(totalCPUTime))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn totalCPUTime(&self) -> Retained<NSMeasurement<NSUnitDuration>>;
47
48 #[unsafe(method(totalSampledTime))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn totalSampledTime(&self) -> Retained<NSMeasurement<NSUnitDuration>>;
54 );
55}
56
57#[cfg(feature = "MXDiagnostic")]
59impl MXCPUExceptionDiagnostic {
60 extern_methods!(
61 #[unsafe(method(init))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64
65 #[unsafe(method(new))]
66 #[unsafe(method_family = new)]
67 pub unsafe fn new() -> Retained<Self>;
68 );
69}