metrickit

Process MetricKit payloads for iOS performance and crash diagnostics.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill metrickit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metrickit
Source: https://github.com/DFly7/iOS-FastAPI-Supabase-AI/tree/main/.agents/skills/metrickit
Command: npx skills add https://github.com/DFly7/iOS-FastAPI-Supabase-AI --skill metrickit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

MetricKit provides on-device performance metrics and diagnostic payloads to help developers triage performance issues and crashes on iOS devices.

Core Features & Use Cases

  • Subscriber Setup: Register a subscriber for MXMetricManager and start receiving MXMetricPayload and MXDiagnosticPayload.
  • Payload Processing: Handle daily metrics and immediate diagnostics, including crash and hang data, with call stack trees for symbolication.
  • Export & Analysis: Persist raw JSON payloads and export to analytics backends or Xcode Organizer for trend analysis and alerting.

Quick Start

Configure MetricKit by subscribing to MXMetricManager in application(_:didFinishLaunchingWithOptions:) and start handling payloads.

Frequently Asked Questions about metrickit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I collect iOS performance metrics and crash diagnostics in a production app?

You collect iOS performance metrics and crash diagnostics by subscribing to MXMetricManager to receive daily MXMetricPayload and immediate MXDiagnosticPayload, then persisting the raw JSON for triage and analytics.

What is the difference between MXMetricPayload and MXDiagnosticPayload in MetricKit?

MXMetricPayload provides daily aggregated performance metrics, while MXDiagnosticPayload delivers immediate crash and hang data with call stack trees for symbolication to support rapid triage.

How do I export MetricKit JSON payloads to an analytics backend?

You export MetricKit JSON payloads by handling the received MXMetricPayload and MXDiagnosticPayload data, persisting the raw JSON locally, and forwarding it to your analytics backend for trend analysis and alerting.

Can I use MetricKit crash diagnostics as an alternative to Xcode Organizer?

MetricKit crash diagnostics provide raw on-device data with call stack trees that you can persist and export for custom analytics, complementing or serving as an alternative to Xcode Organizer trend analysis.

When do I need to subscribe to MXMetricManager in my iOS application?

You need to subscribe to MXMetricManager during application launch in application(_:didFinishLaunchingWithOptions:) to ensure your app receives all daily performance metrics and immediate diagnostic payloads.

Does MetricKit support hang detection and call stack symbolication?

Yes, MetricKit supports hang detection through MXDiagnosticPayload, which includes crash and hang data with call stack trees that you can use for symbolication and performance optimization.