We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8165a03 commit 1677c86Copy full SHA for 1677c86
clang-tools-extra/clangd/XRefs.cpp
@@ -298,6 +298,17 @@ std::vector<LocatedSymbol> findImplementors(llvm::DenseSet<SymbolID> IDs,
298
llvm::StringRef MainFilePath) {
299
if (IDs.empty())
300
return {};
301
+ static constexpr trace::Metric FindImplementorsMetric(
302
+ "find_implementors", trace::Metric::Counter, "case");
303
+ switch (Predicate) {
304
+ case RelationKind::BaseOf:
305
+ FindImplementorsMetric.record(1, "find-base");
306
+ break;
307
+ case RelationKind::OverriddenBy:
308
+ FindImplementorsMetric.record(1, "find-override");
309
310
+ }
311
+
312
RelationsRequest Req;
313
Req.Predicate = Predicate;
314
Req.Subjects = std::move(IDs);
0 commit comments