Skip to content

Commit

Permalink
Enable StressLog for subprocess in EventPipe tests (#45425)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Salem committed Dec 8, 2020
1 parent 7544239 commit 0ec0794
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/tracing/eventpipe/common/IpcUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public static async Task<bool> RunSubprocess(Assembly currentAssembly, Dictionar

process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.StartInfo.Environment.Add("COMPlus_StressLog", "1"); // Turn on stresslog for subprocess
process.StartInfo.Environment.Add("COMPlus_LogFacility", "1000"); // Diagnostics Server Log Facility
process.StartInfo.Environment.Add("COMPlus_LogLevel", "10"); // Log everything
foreach ((string key, string value) in environment)
process.StartInfo.Environment.Add(key, value);
process.StartInfo.FileName = Process.GetCurrentProcess().MainModule.FileName;
Expand Down

0 comments on commit 0ec0794

Please sign in to comment.