Skip to content

feat(anr): Add flame graph attachment helper for ANR profiles - #6596

Draft
markushi wants to merge 1 commit into
mainfrom
feat/anr-profile-flamegraph
Draft

markushi wants to merge 1 commit into
mainfrom
feat/anr-profile-flamegraph

Conversation

@markushi

@markushi markushi commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

PR Stack (ANR Flame Graph)


📜 Description

Adds AnrFlameGraphAttachment.fromAnrProfile(AnrProfile, proguardUuid), which turns an ANR profile into a flame graph attachment (flamegraph.json, event.flamegraph). The payload is modeled by new AnrFlameGraph / AnrFlameGraphNode / AnrFlameGraphTree protocol classes. debug_meta holds only the ProGuard image, since only the JVM main thread is sampled.

The helper is not wired up yet; the ANR profile chunk is unchanged.

💡 Motivation and Context

Lets ANR events carry an aggregated call tree of the main thread alongside the existing profile chunk.

💚 How did you test it?

Unit tests.

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • No breaking change or entry added to the changelog.

🔮 Next steps

Attach the flame graph to ANR events in ApplicationExitInfoEventProcessor (#6597).

🤖 Generated with Claude Code

#skip-changelog

@github-actions

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against b5227ee

@sentry

sentry Bot commented Nov 12, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.64.0 (1) release

⚙️ sentry-android Build Distribution Settings

This branch has not been deployed

No deployments
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