| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
While a transaction is running, performance data is collected every 100ms. CompositeData.addDataAndCheckTimeout read the clock to check for the 30 second collection timeout once per in-flight transaction, allocating a SentryNanotimeDate each time, even though the enclosing timer task had just read it for the sample it was distributing. Pass that reading in, so a collection round reads the clock once instead of once per transaction.
📲 Install BuildsAndroid
|
Sorry, something went wrong.
Performance metrics 🚀
Baseline results on branch: mainStartup times
App size
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
📜 Description
While a transaction is running, DefaultCompositePerformanceCollector collects performance data every 100ms for up to 30 seconds.
CompositeData.addDataAndCheckTimeout read the clock to check the 30s collection timeout once per in-flight transaction, allocating a SentryNanotimeDate (plus System.currentTimeMillis() + System.nanoTime()) each time — even though the enclosing timer task had just read the same clock for the sample it was distributing.
That reading is now passed in, so a collection round reads the clock once rather than once per transaction.
💡 Motivation and Context
Perf improvement!
💚 How did you test it?
Unit tests
📝 Checklist
🔮 Next steps