Skip to content

SizeDiffSummary

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

The headline figures of a size diff between two Native AOT builds. Totals are mstat attributable bytes — the same figures analyze --size reports for each build alone.

public sealed record SizeDiffSummary : IEquatable<SizeDiffSummary>

ObjectSizeDiffSummary

SizeDiffSummary(long, long, long, long, IReadOnlyList<SizeDiffKindCounts>, int, int)

Section titled “SizeDiffSummary(long, long, long, long, IReadOnlyList<SizeDiffKindCounts>, int, int)”

The headline figures of a size diff between two Native AOT builds. Totals are mstat attributable bytes — the same figures analyze --size reports for each build alone.

Parameters:

  • LeftTotal (Int64): The baseline build’s total attributable bytes.
  • RightTotal (Int64): The comparison build’s total attributable bytes.
  • Delta (Int64): RightTotal minus LeftTotal.
  • UnchangedTotal (Int64): The bytes carried by entries identical in both builds. The delta tree omits these; a self-diff has UnchangedTotal equal to the build total and an empty tree.
  • Counts (IReadOnlyList<SizeDiffKindCounts>): Per-kind entry counts split by direction.
  • LeftDeduplicatedMethods (Int32): The baseline build’s deduplicated-method count (format 2.2+; informational — the entries carry no bytes).
  • RightDeduplicatedMethods (Int32): The comparison build’s deduplicated-method count.
public SizeDiffSummary(long LeftTotal, long RightTotal, long Delta, long UnchangedTotal, IReadOnlyList<SizeDiffKindCounts> Counts, int LeftDeduplicatedMethods, int RightDeduplicatedMethods)

Per-kind entry counts split by direction.

Returns: IReadOnlyList<SizeDiffKindCounts>

public IReadOnlyList<SizeDiffKindCounts> Counts { get; init; }

RightTotal minus LeftTotal.

Returns: Int64

public long Delta { get; init; }

The baseline build’s deduplicated-method count (format 2.2+; informational — the entries carry no bytes).

Returns: Int32

public int LeftDeduplicatedMethods { get; init; }

The baseline build’s total attributable bytes.

Returns: Int64

public long LeftTotal { get; init; }

The comparison build’s deduplicated-method count.

Returns: Int32

public int RightDeduplicatedMethods { get; init; }

The comparison build’s total attributable bytes.

Returns: Int64

public long RightTotal { get; init; }

The bytes carried by entries identical in both builds. The delta tree omits these; a self-diff has UnchangedTotal equal to the build total and an empty tree.

Returns: Int64

public long UnchangedTotal { get; init; }