Description
Planning
-
GitHub discussion? - Product requirements
- Proposed design: https://www.figma.com/file/rKAQXGurSfpCUMCgya3OR5/mdx---cpu%2Fmemory-in-waterfall?node-id=1%3A11272&t=jAslelwOJBMvkEJu-1
-
Standard project plan template added to issue-- Probably just need a mini-description of the project here, not a full-blown "Standard project" - Implementation proposal drafted
- Dependent teams consulted
-
MilestonesTasks defined -- Probably just 1 milestone here -
Release schedule drafted in Notion - Epic reviewed by PM & EM
Description
Android SDK is storing CPU and memory metrics on profiles and when there's a transaction with a profile we want to display those metrics in a chart on the event details page.
Product Requirements
CPU and memory are restrictive and important to consider when diagnosing performance issues, more-so than web. We want to display CPU and memory with transactions so users can correlate spikes to ongoing operations.
Implementation Proposal
Profiles are currently loaded onto the event details page if it's a transaction and the transaction has a profile. The data is in the form of:
measurements: {
cpu: {
unit: "percent",
values: [{
elapsed_since_start_ns: number,
value: float
}, ...]
},
memory: {...}
}
This is timeseries data that can be plotted with various charts, with line charts being the most intuitive initially. The elapsed_since_start_ns
may have to be converted into timestamps given the start time of the profile.
### Tasks defined
- [ ] https://github.com/getsentry/sentry/issues/46534
- [ ] https://github.com/getsentry/sentry/issues/46685
- [ ] https://github.com/getsentry/sentry/issues/46686
- [ ] https://github.com/getsentry/sentry/issues/46689
- [ ] https://github.com/getsentry/sentry/issues/46687
- [ ] https://github.com/getsentry/sentry/issues/46535
### Feedback/Suggestions for Improvement
- [ ] https://github.com/getsentry/sentry/issues/48002
- [ ] https://github.com/getsentry/sentry/issues/48003
- [ ] https://github.com/getsentry/sentry/issues/48004
- [ ] https://github.com/getsentry/sentry/issues/48005