1 write to _wavePeriod
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (1)
83
_wavePeriod
= AppContextConfigHelper.GetInt32ComPlusOrDotNetConfig("System.Threading.ThreadPool.HillClimbing.WavePeriod", "HillClimbing_WavePeriod", 4, false);
11 references to _wavePeriod
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.HillClimbing.cs (11)
86
_samplesToMeasure =
_wavePeriod
* AppContextConfigHelper.GetInt32ComPlusOrDotNetConfig("System.Threading.ThreadPool.HillClimbing.WaveHistorySize", "HillClimbing_WaveHistorySize", 8, false);
200
int sampleCount = ((int)Math.Min(_totalSamples - 1, _samplesToMeasure)) /
_wavePeriod
*
_wavePeriod
;
202
if (sampleCount >
_wavePeriod
)
223
double adjacentPeriod1 = sampleCount / (((double)sampleCount /
_wavePeriod
) + 1);
224
double adjacentPeriod2 = sampleCount / (((double)sampleCount /
_wavePeriod
) - 1);
231
throughputWaveComponent = GetWaveComponent(_samples, sampleCount,
_wavePeriod
) / averageThroughput;
242
threadWaveComponent = GetWaveComponent(_threadCounts, sampleCount,
_wavePeriod
) / averageThreadCount;
338
int newThreadCount = (int)(_currentControlSetting + newThreadWaveMagnitude * ((_totalSamples / (
_wavePeriod
/ 2)) % 2));
413
entry.lastHistoryCount = (int)(Math.Min(_totalSamples, _samplesToMeasure) /
_wavePeriod
) *
_wavePeriod
;