metrickit

Collect and analyze on-device performance metrics and crash diagnostics via MetricKit.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/onymchat/onym-ios --skill metrickit-onymchat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metrickit
Source: https://github.com/onymchat/onym-ios/tree/main/.claude/skills/metrickit
Command: npx skills add https://github.com/onymchat/onym-ios --skill metrickit-onymchat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

MetricKit enables developers to collect and analyze on-device performance metrics and crash diagnostics to enable faster production triage and monitoring.

Core Features & Use Cases

  • Subscriber setup and coordinated payload handling with MXMetricManager.
  • Receiving and processing MXMetricPayload and MXDiagnosticPayload, including crash/hang/disk-write diagnostics via MXCallStackTree.
  • Custom signpost metrics and exporting telemetry to backends for analysis.
  • Extended launch measurement and Xcode Organizer integration to monitor app health over time.

Quick Start

Add a MetricsSubscriber early in App startup to subscribe to MXMetricManager.shared.

Frequently Asked Questions about metrickit

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

FAQPage Schema
How do I process MXMetricPayload and MXDiagnosticPayload data in iOS?

To process MXMetricPayload and MXDiagnosticPayload, you subscribe to MXMetricManager. This allows your app to receive combined performance metrics and crash diagnostics, including disk writes and hangs via MXCallStackTree.

How do I set up MXMetricManager to receive on-device performance metrics?

You set up MXMetricManager by adding a MetricsSubscriber early in app startup and subscribing to MXMetricManager.shared. This coordinates the delivery of daily performance metrics and diagnostic payloads to your code.

Can I use custom signpost metrics for telemetry upload with MetricKit?

Yes, you can use custom signpost metrics for telemetry upload. MetricKit enables you to collect signpost metrics and defines export workflows to send the on-device telemetry data to a backend for analysis.

What is the best way to handle crash diagnostics using MXCallStackTree?

The best way to handle crash diagnostics is by processing MXDiagnosticPayload through MXCallStackTree. This approach extracts detailed stack trace information for crashes, hangs, and disk writes to enable faster production triage.

Does MetricKit work with Xcode Organizer for monitoring app health?

Yes, MetricKit works with Xcode Organizer integration to monitor app health over time. It provides extended launch measurement and on-device performance metrics that complement the Xcode Organizer dashboard.

How do I persist MetricKit payload data before exporting to a backend?

You persist MetricKit payload data by handling the received MXMetricPayload and MXDiagnosticPayload objects locally. The integration patterns cover saving these payloads before executing the telemetry export workflows to your backend.