This commit is contained in:
PiotrP 2016-04-20 17:53:38 -07:00
parent 4f1dbeba0e
commit 6c1ef959cc
5 changed files with 142 additions and 0 deletions

View file

@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Loader;
using System.Text;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.InternalAbstractions;
@ -42,6 +43,10 @@ namespace Microsoft.DotNet.Cli
{
DebugHelper.HandleDebugSwitch(ref args);
AssemblyLoadContext.Default.SetProfileOptimizationRoot(
new MulticoreJitProfilePathCalculator().MulticoreJitProfilePath);
AssemblyLoadContext.Default.StartProfileOptimization("dotnet");
if (Env.GetEnvironmentVariableAsBool("DOTNET_CLI_CAPTURE_TIMING", false))
{
PerfTrace.Enabled = true;