Skip to content

Log/Emit memory consumed during task run #11337

Open
@JanKrivanek

Description

@JanKrivanek

Motivation

This is inspired by investigation with @pavelsavara on why there are OOMs during build - dotnet/runtime#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:2Work that is important, but not critical for the releasetriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions