Recommended ways to track cache/request statistics?
#2.235 geöffnet am 11. Aug. 2017
Repository-Metriken
- Stars
- (35.023 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 4T 10h) (11 gemergte PRs in 30 T)
Beschreibung
Glide Version: 4.0
Integration libraries: OkHttp3
Issue details / Repro steps / Use case background: One neat feature of Picasso is that it has a cache snapshots + statistics API that allows you to gather and report statistics however you want. It would be great to get some similar information from Glide (so I guess this is part question, possibly feature request). Looking for some suggestions/guidance on how this could be done today.
Some references:
- Stats.java (which gets callbacks for various stats)
- StatsSnapshot.java (surfaces a snapshot of stats upon request)
Some good use cases of this are for signal in crash reporting, general production stats, debugging (such as showing in a debug drawer, like the u2020 app demonstrates), performance tracking, etc.