sapling/eden/mononoke/bonsai_hg_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
..
if thrift: call hooks from Rust codegen 2020-10-22 17:01:47 -07: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 migrate from sql_ext::SqlConstructors to sql_construct 2020-04-02 05:27:16 -07:00
Cargo.toml mononoke/bonsai_hg_mapping: update to futures 0.3 get_or_fill 2020-12-10 10:24:58 -08:00