Skip to content

POC: Display the CPU & memory metrics provided by Android SDK on Transaction Details #46532

Closed
@narsaynorath

Description

@narsaynorath

Planning

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions