@jkotas @adamsitnik I wonder if you have some insights why Process ends up being difficult to trim?
It always drags in a lot of performance counter related functionality and the dependencies are not straightforward to break without observable behavior changes. (It may be possible to improve this, it is just not straightforward.)
For example, here is a dependency chain from https://github.com/MichalStrehovsky/sizoscope for a simple app that just does Process.Start("notepad.exe").WaitForExit()
Originally posted by @jkotas in #126192 (comment)
It always drags in a lot of performance counter related functionality and the dependencies are not straightforward to break without observable behavior changes. (It may be possible to improve this, it is just not straightforward.)
For example, here is a dependency chain from https://github.com/MichalStrehovsky/sizoscope for a simple app that just does
Process.Start("notepad.exe").WaitForExit()Originally posted by @jkotas in #126192 (comment)