sapling/eden/fs/journal/test
Chad Austin e419dd2799 remove the reference-counting overhead from DurationScope
Summary:
DurationScope has a pair of atomic reference count operations at the
beginning and end of every recorded duration. To avoid that overhead,
reference EdenStats with RefPtr and, in production EdenFS, store a
global, unowned EdenStats object.

This gives us the benefits of explicit dependencies and no global
state in tests, while avoiding atomic RMWs in the release build.

Reviewed By: xavierd

Differential Revision: D44323723

fbshipit-source-id: 1b3384d2e6a0a2959fd79774a8ba46afc4c176ca
2023-03-24 13:50:40 -07:00
..
CMakeLists.txt fs: fix license header 2022-01-04 15:00:07 -08:00
JournalTest.cpp remove the reference-counting overhead from DurationScope 2023-03-24 13:50:40 -07:00