mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Add some counters related to name lookup
This commit is contained in:
@@ -454,6 +454,12 @@ void namelookup::lookupInModule(ModuleDecl *startModule,
|
||||
LazyResolver *typeResolver,
|
||||
const DeclContext *moduleScopeContext,
|
||||
ArrayRef<ModuleDecl::ImportedModule> extraImports) {
|
||||
auto *stats = startModule->getASTContext().Stats;
|
||||
if (stats)
|
||||
stats->getFrontendCounters().NumLookupInModule++;
|
||||
|
||||
FrontendStatsTracer tracer(stats, "lookup-in-module");
|
||||
|
||||
assert(moduleScopeContext && moduleScopeContext->isModuleScopeContext());
|
||||
LookupByName lookup(typeResolver, startModule, resolutionKind, name,
|
||||
lookupKind);
|
||||
|
||||
Reference in New Issue
Block a user