sapling/eden/fs/tracing
Matt Glazar 761d5d2c8e Separate FUSE and Hg counter structs
Summary:
Some threads update FUSE counters, some threads update HgBackingStore counters, and some threads update HgImporter counters. No thread updates all of FUSE counters, HgBackingStore counters, and HgImporter counters. FUSE threads and HgImporter threads allocate the full set of counters (EdenThreadStats), even though many of the allocated counters can never be used during the thread's lifetime.

Reduce redundant allocation (and overhead during counter aggregation): split EdenThreadStats into three classes (FuseThreadStats, HgBackingStoreThreadStats, and HgImporterThreadStats) so different threads can allocate different sets of counters.

This diff should not change observable behavior.

Reviewed By: simpkins

Differential Revision: D14822273

fbshipit-source-id: cfd238187d20a0b8d3959673401ecad894e2095b
2019-05-29 18:11:56 -07:00
..
test build several targets on mac and run 5 test suites 2019-04-18 19:36:20 -07:00
CMakeLists.txt eden: add missing cmake for eden/fs/tracing 2018-12-15 19:11:05 -08:00
EdenStats.cpp Separate FUSE and Hg counter structs 2019-05-29 18:11:56 -07:00
EdenStats.h Separate FUSE and Hg counter structs 2019-05-29 18:11:56 -07:00
Tracing.cpp Add lightweight tracing infrastructure 2018-11-01 08:09:19 -07:00
Tracing.h Add lightweight tracing infrastructure 2018-11-01 08:09:19 -07:00