DevPrep

All topics › Performance

What is MetricKit and how do you collect performance metrics from real devices?

Senior PRO

Essence

Instruments shows how the app behaves on your device in your scenario. Users, though, run it on old phones, with a bad network, full memory and in the heat. MetricKit (iOS 13+) collects aggregated performance metrics and diagnostics on their devices and hands them to the app about once a day — from there you send them to your own analytics. Xcode Organizer shows similar data for all users who agreed to share analytics with developers.

The rest of this answer, with code and interview follow-ups, is in the DevPrep app.

Read the full answer in DevPrep

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store