Skip to content

Memory Info allocated bytes name is unclear #4242

@KnapSac

Description

@KnapSac

Problem Statement

Events contain an additional MemoryInfo context. This is useful, but especially the Allocated bytes name is a bit unclear. It's actually the total allocated bytes over the lifetime of the process, not the currently allocated bytes (which is represented by Heap Size Bytes).

var allocatedBytes = GC.GetTotalAllocatedBytes();

If the process has been running for some time this becomes obvious, because we don't have machines with that much memory. But after startup this is not immediately obvious.
Image

Solution Brainstorm

I'd suggest renaming Allocated Bytes to Total Allocated Bytes and maybe Heap Size Bytes to Currently Allocated Bytes.

Additionally, it would be nice if there was a way to provide some additional information about what these values represent. E.g. linking to the documentation. However, I don't know if the UI supports that.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions