Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

Sentry Cocoa Frame Tracking on iOS 18 Tracking

Sentry Cocoa frame tracking for iOS 18: measure slow and frozen frames, frame delay and time to display with the new opt-in option in 9.36.0.

· 3 min read

Sentry Cocoa 9.36.0, released on 26 November 2026, adds an experimental, opt-in way to track slow frames, frozen frames, frame delay and time to display. It works on iOS 18, tvOS 18 and visionOS 2 or later. It is off by default, so nothing changes until you switch it on.

Frame data is the closest thing to a smoothness score for your app. Without it, you only hear about jank when a user complains or leaves a one-star review.

Why This Metric Matters

Users do not describe a dropped frame. They say the app feels slow. Crash reports will not show that, because nothing crashed. If you only watch crash rate, you can ship a release that is stable and still unpleasant to use.

Sentry says the new mechanism no longer wakes an idle app on every frame. That matters because the old approach could add its own cost. Before you trust any new frame numbers, check that the measurement is not changing the thing it measures.

Data Points to Track

Capture these for each screen or transaction:

  • slow_frame_count: frames that took longer than the display budget
  • frozen_frame_count: frames that took long enough to look stuck
  • total_frame_count: so you can turn counts into a percentage
  • frame_delay_ms: time lost to late frames in the transaction
  • time_to_initial_display_ms and time_to_full_display_ms
  • screen_name and transaction_name
  • os_version and device_model
  • sdk_version and frame_tracking_enabled (true or false)
  • release and build_number

Setup Steps

  1. Upgrade the Sentry Cocoa SDK to 9.36.0 or later.
  2. Read the release notes and find the new frame tracking option. It is marked experimental.
  3. Enable it for a small share of users first, such as an internal build or 5% of a staged rollout.
  4. Tag every event with frame_tracking_enabled so you can compare the two groups.
  5. Make sure UIViewController tracing is on, so frame data is tied to named screens.
  6. Run the app on a mid-range device, scroll your busiest list and open your heaviest screen. Check that frame counts appear.
  7. Compare battery and CPU for the two groups over a week.
  8. Build a dashboard showing frozen frames as a share of total frames, by screen and by release.

Actionable Insights

A few screens hold most of the frozen frames. Fix those first. A long feed or a large image grid is the usual cause.

Frame delay is high but frozen frames are low. Many small stutters can feel worse than one big freeze. Look for work on the main thread during scrolling.

One release raises frozen frames. Compare it to the change list. A new animation or a heavier layout is a likely reason.

Older devices look much worse. Decide whether to simplify the screen or set a lower quality mode for those devices.

Time to display is slow but frames are fine. The problem is loading, not drawing. Look at network calls and data setup.

Common Mistakes to Avoid

Do not compare frame numbers from the opt-in group with data from before the change without a note. Do not read experimental output as a firm target. And do not enable it on every user at once, because you cannot see its cost without a control group.