Commit d501a7e
feat(anr): Profile main thread when ANR and report ANR profiles to Sentry (#4899)
* Profile main thread when ANR and report ANR profiles to sentry
* docs(changelog): Add ANR profiling integration entry
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix api dump file
* Address PR feedback
* refactor(anr): Implement lazy file rotation for ANR profiling
* Update Changelog
* Address PR feedback
* Improve folding logic, cleanup tests
* Add more tests and address feedback
* Update CHANGELOG.md
* Address PR feedcback
* Move logic to event processor
* Update changelog
* Ensure integration is tracked
* Address PR feedback
* Fix tests
* Match manifest property to convention, enable profiling in sample app
* Add more bound checks and null guards
* Remove outdated meta-data
* Properly handle foreground transitions
* Address PR comments
* Address PR feedback
* Address PR feedback
* Address PR feedback
* Re-use thread
* Update Changelop
* Address review
* Address PR feedback
* Replace ANR profiling boolean flag with sample-rate (#5156)
* feat(android): Add enableAnrFingerprinting option (#5168)
* feat(android): Add enableAnrFingerprinting option
Decouple ANR fingerprinting from ANR profiling into a standalone
opt-in option. This allows static fingerprinting of system-frame-only
ANRs regardless of whether profiling is enabled.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(android): Mark enableAnrFingerprinting as experimental
Also enable the option in the sample app.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(android): Default enableAnrFingerprinting to true
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* refactor(android): Remove experimental flag from enableAnrFingerprinting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix api dump
* Address PR feedback
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* Fix tests
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Roman Zavarnitsyn <rom4ek93@gmail.com>1 parent b67bb28 commit d501a7e
File tree
37 files changed
+2772
-58
lines changed- sentry-android-core
- api
- src
- main/java/io/sentry/android/core
- anr
- test/java/io/sentry/android/core
- anr
- sentry-android-distribution/src/test/java/io/sentry/android/distribution
- sentry-samples/sentry-samples-android/src/main
- sentry
- api
- src/main/java/io/sentry
- exception
- util
37 files changed
+2772
-58
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
180 | 188 | | |
181 | 189 | | |
182 | 190 | | |
183 | | - | |
| 191 | + | |
184 | 192 | | |
185 | 193 | | |
186 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| |||
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| 361 | + | |
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
| |||
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| 370 | + | |
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
| |||
381 | 384 | | |
382 | 385 | | |
383 | 386 | | |
| 387 | + | |
384 | 388 | | |
385 | 389 | | |
386 | 390 | | |
| |||
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
| 400 | + | |
396 | 401 | | |
397 | 402 | | |
398 | 403 | | |
| |||
553 | 558 | | |
554 | 559 | | |
555 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
556 | 634 | | |
557 | 635 | | |
558 | 636 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
397 | 401 | | |
398 | 402 | | |
399 | 403 | | |
| 404 | + | |
| 405 | + | |
400 | 406 | | |
401 | 407 | | |
402 | 408 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
146 | | - | |
| 153 | + | |
147 | 154 | | |
148 | 155 | | |
149 | 156 | | |
| |||
0 commit comments