From aea238d574ea9de074a24337f0669bdbbebbd29c Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Thu, 18 Apr 2019 13:26:03 +0200 Subject: [PATCH] Report running processes in log Fixes #64 --- ATxDiagnostics/ATxDiagnostics.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ATxDiagnostics/ATxDiagnostics.cs b/ATxDiagnostics/ATxDiagnostics.cs index c56ec2f..31de4c4 100644 --- a/ATxDiagnostics/ATxDiagnostics.cs +++ b/ATxDiagnostics/ATxDiagnostics.cs @@ -41,6 +41,16 @@ namespace ATxDiagnostics Log.Debug("Free space on drive [C:]: " + Conv.BytesToString(SystemChecks.GetFreeDriveSpace("C:"))); + Log.Debug("\n\n>>>>>>>>>>>> running processes >>>>>>>>>>>>"); + foreach (var running in Process.GetProcesses()) { + var title = running.MainWindowTitle; + if (title.Length > 0) { + title = " (\"" + title + "\")"; + } + Log.Debug(" - {0}{1}", running.ProcessName, title); + } + Log.Debug("\n<<<<<<<<<<<< running processes <<<<<<<<<<<<\n"); + if (perfMonitors.Contains("CPU")) { Log.Info("Watching CPU load using ATxCommon.Monitoring..."); var cpu = new Cpu { -- GitLab