Log/Emit memory consumed during task run
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Motivation
This is inspired by investigation with @pavelsavara on why there are OOMs during build - https://github.com/dotnet/runtime/pull/111662
It is currently nontrivial to attribute the memory hitter (especially if notrivial amount of native allocations or pinning are involved as well). It would be nice if we could get some initial rough direction from binlog. But this might be interesting data for telemetry as well.
### Idea
`System.Diagnostics.Process` and `System.GC` can be queried for a consumed memry before and after task execution - the diffs can then be attached to TaskExecutedEventArgs.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.