sapling/eden/mononoke/phases
Thomas Orozco b766407054 mononoke/caching_ext: unify our cache stats reporting
Summary:
I'd like to lower the bar to entry as much as possible to use caching in e.g.
mappings. One thing that's a little annoying to setup right now is stats. Let's
unify those.

This does mean the stats names for mappings that had them will change, but I
think that's probably OK here.

A few notes about the implementation:

- I made the stats objects singletons, because ultimately that *is* what stats
  are under the hood.
- I made a macro to define the singleton because that was otherwise really
  verbose.

Reviewed By: farnz

Differential Revision: D25461182

fbshipit-source-id: f30d0908c40d8e0010c546ec95a385a06d557757
2020-12-10 12:01:45 -08:00
..
schemas Manual synchronization of fbcode/eden and facebookexperimental/eden 2020-02-11 11:42:43 +01:00
src mononoke/caching_ext: unify our cache stats reporting 2020-12-10 12:01:45 -08:00
tests/src convert BlobRepo::get_bonsai.*bookmarks to new futures 2020-11-27 06:49:06 -08:00
Cargo.toml mononoke/phases: update to futures 0.3 get_or_fill 2020-12-10 10:24:58 -08:00