sapling/eden/mononoke/bonsai_globalrev_mapping
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
..
globalrev_pushrebase_hook mononoke/bonsai_globalrev_mapping: set perf counters 2020-12-07 08:23:19 -08:00
if mononoke/bonsai_globalrev_mapping: add caching 2020-12-07 08:23:19 -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
test mononoke/bonsai_globalrev_mapping: set perf counters 2020-12-07 08:23:19 -08:00
Cargo.toml mononoke/bonsai_globalrev_mapping: update to 0.3 futures get_or_fill 2020-12-10 10:24:58 -08:00