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.
MetricKit을 사용하여 기기 내 성능 지표와 충돌 진단을 수집하고 분석합니다. MXMetricManager 설정, MXMetricPayload 또는 MXDiagnosticPayload 처리, MXCallStackTree를 통한 충돌/중지/디스크 쓰기 진단 처리, 사용자 정의 표지판 지표 추가 또는 분석 백엔드에 원격 측정 업로드 시 사용합니다. 출처: dpearson2699/swift-ios-skills.