sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

[QA] Avoid collecting normal frames

Open stefanosiano opened this issue 1 year ago • 1 comments

: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 sendDefaultPII is 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.

:crystal_ball: Next steps

stefanosiano avatar Oct 10 '24 12:10 stefanosiano