Skip to content

Add TTID (Time To Initial Display) instrumentation - #1864

Draft
hugolevyy wants to merge 1 commit into
open-telemetry:mainfrom
hugolevyy:feature/ttid-instrumentation
Draft

Add TTID (Time To Initial Display) instrumentation#1864
hugolevyy wants to merge 1 commit into
open-telemetry:mainfrom
hugolevyy:feature/ttid-instrumentation

Conversation

@hugolevyy

Copy link
Copy Markdown

Summary

  • Adds an AppStartDisplay span (child of the existing AppStart span) measuring Time To Initial Display (TTID) — the time from app start until the first frame is drawn after the initial activity resumes.
  • Detected using the standard double Choreographer.postFrameCallback technique to avoid reporting an already-in-flight stale frame.
  • Cold-start only, one-shot, with a cancellation guard wired into uninstall().

Test plan

  • Run ./gradlew :instrumentation:activity:testDebugUnitTest locally
  • Manually sanity-check via the demo app that AppStartDisplay appears with a plausible small positive duration relative to AppStart

Adds an AppStartDisplay span, a child of AppStart, that measures time
to first frame drawn on cold start using the Choreographer
double-postFrameCallback technique.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant