-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scmstore: don't update ODS counters for every fetch
Summary: Instead, update ODS counters during flush() (where the regular Sapling counters get updated). EdenFS calls flush() on its backing stores every 1 minute, so they should get updated regularly. I'm doing this because the scmstore metrics weren't "designed" to be logged for every fetch. Getting the list of metrics allocates a ton of Strings, so calling for every fetch (which can often be a fetch of a single file or directory), is wasteful (didn't profile - could be neglible amount of waste). Reviewed By: sggutier Differential Revision: D66731805 fbshipit-source-id: 46578e2d18a6534c956ec71054b4bc2016e4c669
- Loading branch information
1 parent
2a156fb
commit 14609c4
Showing
2 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters