Skip to content

Investigate improving trimability of System.Diagnostics.Process #126332

@jkotas

Description

@jkotas

@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()

image

Originally posted by @jkotas in #126192 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions