Example #1
0
        private void StartCliProfileOptimization()
        {
            var profileOptimizationRootPath = new MulticoreJitProfilePathCalculator().MulticoreJitProfilePath;

            if (!TryEnsureDirectory(profileOptimizationRootPath))
            {
                return;
            }

            AssemblyLoadContext.Default.SetProfileOptimizationRoot(profileOptimizationRootPath);

            AssemblyLoadContext.Default.StartProfileOptimization("dotnet");
        }
        private void StartCliProfileOptimization()
        {
            var profileOptimizationRootPath = new MulticoreJitProfilePathCalculator().MulticoreJitProfilePath;

            if (!TryEnsureDirectory(profileOptimizationRootPath))
            {
                return;
            }
            
            AssemblyLoadContext.Default.SetProfileOptimizationRoot(profileOptimizationRootPath);
            
            AssemblyLoadContext.Default.StartProfileOptimization("dotnet");
        }