Collect aggregated performance metrics and crash diagnostics from production devices using MetricKit. The framework delivers daily metric payloads (CPU, memory, launch time, hang rate, animation hitches, network usage) and immediate diagnostic payloads (crashes, hangs, disk-write exceptions) with full call-stack trees for triage.
Register a subscriber as early as possible — ideally in application(:didFinishLaunchingWithOptions:) or App.init. MetricKit starts accumulating reports after the first access to MXMetricManager.shared.
MXMetricPayload arrives approximately once per 24 hours containing aggregated metrics. The array may contain multiple payloads if prior deliveries were missed.
Recopile y analice métricas de rendimiento del dispositivo y diagnósticos de fallos mediante MetricKit. Úselo al configurar MXMetricManager, manejar MXMetricPayload o MXDiagnosticPayload, procesar diagnósticos de bloqueo/bloqueo/escritura en disco a través de MXCallStackTree, agregar métricas de señalización personalizadas o cargar telemetría a un backend de análisis. Fuente: dpearson2699/swift-ios-skills.