Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/coreclr/tests/src/profiler/common/ProfilerTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Profiler.Tests
public enum ProfileeOptions
{
None = 0,
DisableTieredCompilation,
OptimizationSensitive,
NoStartupAttach
}

Expand All @@ -41,10 +41,12 @@ public static int Run(string profileePath,
envVars.Add("CORECLR_PROFILER", "{" + profilerClsid + "}");
}

if (profileeOptions.HasFlag(ProfileeOptions.DisableTieredCompilation))
if (profileeOptions.HasFlag(ProfileeOptions.OptimizationSensitive))
{
Console.WriteLine("Disabling tiered compilation.");
Console.WriteLine("Disabling tiered compilation, jitstress, and minopts.");
envVars.Add("COMPlus_TieredCompilation", "0");
envVars.Add("COMPlus_JitStress", "0");
envVars.Add("COMPlus_JITMinOpts", "0");
}

string profilerPath = GetProfilerPath();
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/tests/src/profiler/rejit/rejit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static int Main(string[] args)
return ProfilerTestRunner.Run(profileePath: System.Reflection.Assembly.GetExecutingAssembly().Location,
testName: "ReJITWithInlining",
profilerClsid: ReJitProfilerGuid,
profileeOptions: ProfileeOptions.DisableTieredCompilation);
profileeOptions: ProfileeOptions.OptimizationSensitive);
}
}
}