Skip to content

Track app start data #3035

@markushi

Description

@markushi

Description

Track app start data for cold/warm/hot app starts.

Besides tracking the overall duration (P-Y provides a great introduction for Android here) it would be even more valuable to see which components contribute to the app start.

  • Track ContentProvider.onCreate calls (using bytecode instrumentation)
  • Track Application.onCreate call (using bytecode instrumentation)
  • Track Activity.onCreate/onStart/onResume calls, note: there could be multiple Activities until the first frame is drawn (known as Trampoline Activities)

image

Related discussion: getsentry/team-sdks#22

Slack-Channel:
#discuss-mobile-starfish

### Tasks
- [x] Track overall app start time
- [x] Android: Instrument Application and ContentProvider
- [x] Android: Track Activities
### Followups
- [ ] Android: Collect Room method names to group db.sql.room spans better

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions