dotnet / msbuild

The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
https://docs.microsoft.com/visualstudio/msbuild/msbuild
MIT License
5.17k stars 1.34k forks source link

Name worker nodes in Task Manager #9930

Open rainersigwald opened 3 months ago

rainersigwald commented 3 months ago

https://learn.microsoft.com/windows/win32/perfctrs/using-workunit-perf_counters allows setting up additional information from a process through Windows performance counters that is displayed in Task Manager.

MSBuild should use this when on Windows to make worker nodes and TaskHost nodes more obvious (instead of requiring users to divine role from command line).

rainersigwald commented 3 months ago

Based on an internal thread, we might be able to do something simpler by setting lpTitle in the STARTUPINFOW we use to spawn processes on Windows--probably worth trying first.

KalleOlaviNiemitalo commented 3 months ago

Do the Work Unit performance counters exist on Windows 11 only? I don't see that category in Performance Monitor on Windows 10.