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:
@@ -248,6 +248,7 @@ ModuleDependencyScanningWorker::scanFilesystemForClangModuleDependency(
|
||||
template <typename Function, typename... Args>
|
||||
auto ModuleDependencyScanner::withDependencyScanningWorker(Function &&F,
|
||||
Args &&...ArgList) {
|
||||
NumLookups++;
|
||||
auto getWorker = [this]() -> std::unique_ptr<ModuleDependencyScanningWorker> {
|
||||
std::lock_guard<std::mutex> guard(WorkersLock);
|
||||
// If we have run out of workers, something has gone wrong as we must never
|
||||
|
||||
Reference in New Issue
Block a user