mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Dependency Scanning] Keep track of how many filesystem module lookups the dependency scanner performs on a given scan
This commit is contained in:
@@ -95,6 +95,9 @@ public:
|
||||
getNamedSwiftModuleDependencyInfo(StringRef moduleName,
|
||||
ModuleDependenciesCache &cache);
|
||||
|
||||
/// How many filesystem lookups were performed by the scanner
|
||||
unsigned getNumLookups() { return NumLookups; }
|
||||
|
||||
private:
|
||||
/// Main routine that computes imported module dependency transitive
|
||||
/// closure for the given module.
|
||||
@@ -166,6 +169,8 @@ private:
|
||||
llvm::StdThreadPool ScanningThreadPool;
|
||||
/// Protect worker access.
|
||||
std::mutex WorkersLock;
|
||||
/// Count of filesystem queries performed
|
||||
std::atomic<unsigned> NumLookups = 0;
|
||||
};
|
||||
|
||||
} // namespace swift
|
||||
|
||||
Reference in New Issue
Block a user