Aggregate and analyze per-device reports on power and performance metrics.
- iOS 13.0+Beta
- UIKit for Mac 13.0+Beta
With MetricKit, you can receive on-device app power and performance metrics captured by the system. A registered app receives reports containing data about the previous 24 hours at most once per day.
Use the data in the reports to help improve the performance of your app.
The framework includes:
A manager class and a subscriber protocol.
A payload class for reported data.
Classes for each category of metrics.
Classes for measurement units, such as bars of cellular connectivity.
Classes for representing accumulated data such as histograms.