.NET 6.0에서 동적 PGO 활성화

동적 PGO는 .NET 6.0에서 기본 비활성화 되어 있습니다. 이를 활성화 하려면 다음의 환경변수를 지정해야 합니다.

# Enable Dynamic PGO
export DOTNET_TieredPGO=1

# AOT images aren't instrumented so we need to disable them and collect
# relevant PGO data for literally everything. It affects startup time badly, 
# but leads to higher performance after warm up.
export DOTNET_ReadyToRun=0

# For .NET 7.0 we hopefully will enable full-fledged OSR, but for now methods with loops 
# always bypass tier0, however, we do need them in tier0 to be instrumented for PGO.
export DOTNET_TC_QuickJitForLoops=1

| Linux/macOS, Windows-Powershell 용:

$env:DOTNET_TieredPGO=1
$env:DOTNET_ReadyToRun=0
$env:DOTNET_TC_QuickJitForLoops=1
2개의 좋아요