Skip to content

SizeDiffAggregate

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

The byte totals of one assembly or namespace on both sides of a size diff. Aggregates cover all attributable bytes for their scope — methods, MethodTables, RVA fields, frozen objects via their owner, and (for assemblies) resources — so a scoped size budget measures what the scope actually contributes.

public sealed record SizeDiffAggregate : IEquatable<SizeDiffAggregate>

ObjectSizeDiffAggregate

SizeDiffAggregate(string, long, long, long)

Section titled “SizeDiffAggregate(string, long, long, long)”

The byte totals of one assembly or namespace on both sides of a size diff. Aggregates cover all attributable bytes for their scope — methods, MethodTables, RVA fields, frozen objects via their owner, and (for assemblies) resources — so a scoped size budget measures what the scope actually contributes.

Parameters:

public SizeDiffAggregate(string Name, long LeftSize, long RightSize, long Delta)

RightSize minus LeftSize.

Returns: Int64

public long Delta { get; init; }

The baseline bytes, or 0 when the scope is new.

Returns: Int64

public long LeftSize { get; init; }

The assembly simple name or namespace, or UnattributedName.

Returns: String

public string Name { get; init; }

The comparison-side bytes, or 0 when the scope disappeared.

Returns: Int64

public long RightSize { get; init; }