[ANR] Reduced AndroidTransactionProfiler lock - #4817
#4817Merged
stefanosiano merged 8 commits intoOct 28, 2025
maingetsentry/sentry-java:mainfrom
stefanosiano/enh/remove-profiling-lockgetsentry/sentry-java:stefanosiano/enh/remove-profiling-lockCopy head branch name to clipboard
Merged
[ANR] Reduced AndroidTransactionProfiler lock#4817stefanosiano merged 8 commits intomaingetsentry/sentry-java:mainfrom stefanosiano/enh/remove-profiling-lockgetsentry/sentry-java:stefanosiano/enh/remove-profiling-lockCopy head branch name to clipboard
stefanosiano merged 8 commits into
maingetsentry/sentry-java:mainfrom
stefanosiano/enh/remove-profiling-lockgetsentry/sentry-java:stefanosiano/enh/remove-profiling-lockCopy head branch name to clipboard
Conversation
stefanosiano
marked this pull request as ready for review
October 20, 2025 11:32
stefanosiano
requested review from
adinauer,
lcian,
markushi and
romtsn
as code owners
October 20, 2025 11:32
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| d217708 | 375.27 ms | 415.68 ms | 40.41 ms |
| ee747ae | 405.43 ms | 485.70 ms | 80.28 ms |
| 3d205d0 | 352.15 ms | 432.53 ms | 80.38 ms |
| b3d8889 | 371.33 ms | 426.24 ms | 54.92 ms |
| 27d7cf8 | 309.43 ms | 364.27 ms | 54.85 ms |
| 17a0955 | 372.53 ms | 446.70 ms | 74.17 ms |
| c8125f3 | 383.82 ms | 441.66 ms | 57.84 ms |
| bdbe1f4 | 380.66 ms | 464.44 ms | 83.78 ms |
| f634d01 | 375.06 ms | 420.04 ms | 44.98 ms |
| ee747ae | 415.92 ms | 470.15 ms | 54.23 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| d217708 | 1.58 MiB | 2.10 MiB | 532.97 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
| 3d205d0 | 1.58 MiB | 2.10 MiB | 532.97 KiB |
| b3d8889 | 1.58 MiB | 2.10 MiB | 535.07 KiB |
| 27d7cf8 | 1.58 MiB | 2.12 MiB | 549.42 KiB |
| 17a0955 | 1.58 MiB | 2.10 MiB | 533.20 KiB |
| c8125f3 | 1.58 MiB | 2.10 MiB | 532.32 KiB |
| bdbe1f4 | 1.58 MiB | 2.11 MiB | 538.88 KiB |
| f634d01 | 1.58 MiB | 2.10 MiB | 533.40 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
Previous results on branch: stefanosiano/enh/remove-profiling-lock
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9d937d0 | 351.00 ms | 486.74 ms | 135.74 ms |
| 7bf9f04 | 329.80 ms | 401.20 ms | 71.41 ms |
| 54a0e3d | 313.70 ms | 369.06 ms | 55.36 ms |
| 6329f7d | 302.88 ms | 357.80 ms | 54.92 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9d937d0 | 1.58 MiB | 2.12 MiB | 549.09 KiB |
| 7bf9f04 | 1.58 MiB | 2.12 MiB | 548.08 KiB |
| 54a0e3d | 1.58 MiB | 2.12 MiB | 549.09 KiB |
| 6329f7d | 1.58 MiB | 2.11 MiB | 539.66 KiB |
romtsn
reviewed
Oct 20, 2025
romtsn
reviewed
Oct 24, 2025
romtsn
reviewed
Oct 24, 2025
romtsn
approved these changes
Oct 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Removed lock from AndroidTransactionProfiler
💡 Motivation and Context
Trying to reduce ANRs. There are reports of ANRs happening when getting the lock on transaction start/end
resolves #4792
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps