25 references to GetLogicalCoreCount
Microsoft.Build (6)
BackEnd\Components\Caching\ResultsCache.cs (1)
252capacity => new ConcurrentDictionary<int, BuildResult>(NativeMethodsShared.GetLogicalCoreCount(), capacity));
BackEnd\Components\Scheduler\Scheduler.cs (1)
213_coreLimit = NativeMethodsShared.GetLogicalCoreCount();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
578NativeMethodsShared.GetLogicalCoreCount(),
FileMatcher.cs (1)
2576var maxTasks = Math.Max(1, NativeMethodsShared.GetLogicalCoreCount() / 2);
Graph\ProjectGraph.cs (2)
341NativeMethodsShared.GetLogicalCoreCount(), 382NativeMethodsShared.GetLogicalCoreCount(),
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
108parameters[1].ShouldBe(Convert.ToString(NativeMethodsShared.GetLogicalCoreCount()));
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2802var itemElements = NativeMethodsShared.GetLogicalCoreCount() * 5;
Microsoft.Build.Engine.UnitTests (13)
BackEnd\BuildManager_Tests.cs (1)
3971MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(),
Graph\ParallelWorkSet_Tests.cs (4)
69DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(), 97DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount() 112DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(), 176DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(),
ProjectCache\ProjectCacheTests.cs (8)
663var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount()).ToArray(); 1395MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1451var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1468MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1514var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1528MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1578var projectPaths = Enumerable.Range(0, NativeMethodsShared.GetLogicalCoreCount()) 1608MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount()
Microsoft.Build.Tasks.Core (2)
Copy.cs (1)
46private static readonly int DefaultCopyParallelism = NativeMethodsShared.GetLogicalCoreCount() > 4 ? 6 : 4;
FileMatcher.cs (1)
2576var maxTasks = Math.Max(1, NativeMethodsShared.GetLogicalCoreCount() / 2);
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
2576var maxTasks = Math.Max(1, NativeMethodsShared.GetLogicalCoreCount() / 2);
MSBuild (1)
XMake.cs (1)
2053int numberOfCpus = NativeMethodsShared.GetLogicalCoreCount();