sentry-java
sentry-java copied to clipboard
[QA] Avoid collecting normal frames
:scroll: Description
avoid keeping normal frames in memory when collecting slow/frozen frames
:bulb: Motivation and Context
We were keeping a lot of useless frames in memory, without using them. This means that when a span finishes, we were iterating and then cleaning a lot more items than necessary.
:green_heart: How did you test it?
Unit tests
:pencil: Checklist
- [ ] I reviewed the submitted code.
- [ ] I added tests to verify the changes.
- [ ] No new PII added or SDK only sends newly added PII if
sendDefaultPIIis enabled. - [ ] I updated the docs if needed.
- [ ] Review from the native team if needed.
- [ ] No breaking change or entry added to the changelog.
- [ ] No breaking change for hybrid SDKs or communicated to hybrid SDKs.