Skip to content
Snippets Groups Projects
Commit aea238d5 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Report running processes in log

Fixes #64
parent 7ae22cad
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment