mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
ec85a8b308
Summary: wedge_agent uses ThreadLocal stats update API to avoid the overhead of acquiring lock for each stat update. Prior to this patch, wedge_agent used its own StatsPublisher class which called publishStats every second. StatsPublisher also asserted if startPublishThread is not running as StatsPublisher was doing the stats publish. However, there is no reason for wedge_agent to publish stats on its own. Instead, the wedge_agent could use startPublishThread mechanism. With D14255180, servicerouter/dispatcher now calls startPublishThread, which started hitting in the aforementioned ASSERT in StatsPublisher. This patch fixes it by having wedge_agent start the publish thread by calling startPublishThread. Among other things, StatsPublisher also updated route stats and port info. That functionality is moved to updateStats. Differential Revision: D14388119 fbshipit-source-id: 503d08f12131317592be64e46243401d8a2e5bae |
||
---|---|---|
.. | ||
fb303 | ||
logging | ||
network/if | ||
stats | ||
time | ||
.gitignore | ||
CMakeLists.txt | ||
README.md |
This directory mostly contains stub implementations of Facebook libraries that are not fully open source yet. These stubs allow the FBOSS code to build while we are still working on fully open sourcing these libraries.
The code in common/stats is the main piece that is not fully open source yet. We are working to eventually make all of this code available in the facebook/folly repository.