Recommended ways to track cache/request statistics?
#2.235 aberto em 11 de ago. de 2017
Métricas do repositório
- Stars
- (35.023 stars)
- Métricas de merge de PR
- (Mesclagem média 4d 10h) (11 fundiu PRs em 30d)
Description
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.