Skip to content

Commit 820b411

Browse files
committed
add more logs
1 parent 05c966b commit 820b411

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/code/InstallHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,10 @@ private ConcurrentDictionary<string, Hashtable> InstallParentAndDependencyPackag
923923

924924
// TODO: figure out a good threshold and parallel count
925925
int processorCount = Environment.ProcessorCount;
926+
_cmdletPassedIn.WriteDebug($"parentAndDeps.Count is {parentAndDeps.Count}, processor count is: {processorCount}");
926927
if (parentAndDeps.Count > processorCount)
927928
{
929+
_cmdletPassedIn.WriteDebug($"parentAndDeps.Count is greater than processor count");
928930
// Set the maximum degree of parallelism to 32? (Invoke-Command has default of 32, that's where we got this number from)
929931
// If installing more than 3 packages, do so concurrently
930932
// If the number of dependencies is very small (e.g., ≤ CPU cores), parallelism may add overhead instead of improving speed.

0 commit comments

Comments
 (0)