[clangd] Record remote index usage
authorKadir Cetinkaya <kadircet@google.com>
Mon, 26 Jul 2021 15:08:03 +0000 (17:08 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Fri, 30 Jul 2021 13:24:22 +0000 (15:24 +0200)
commit8070bf8c6e6afbf0b8a20322d935cb530b4b796a
treefa8ae41c5ff6b4158feb05e7cdd0edb32106bf74
parent41e24222861fb5394ab4c7e892a7d7f2914b533e
[clangd] Record remote index usage

This is a gauage metric that sets particular remote-index instances as
used. It should enable accumulation of multiple streams to see number of clangd
processes making use of remote index, broken down by remote index address.

Differential Revision: https://reviews.llvm.org/D106796
clang-tools-extra/clangd/tool/ClangdMain.cpp