Skip to content

SizeBudgetReport

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

The outcome of checking a build against a set of size budgets. The check fails — Passed is false — only when an error-severity budget breached; warning breaches surface through HasWarnings without failing the check.

public sealed record SizeBudgetReport : IEquatable<SizeBudgetReport>

ObjectSizeBudgetReport

SizeBudgetReport(bool, bool, SizeBasis, long, long, long?, long?, IReadOnlyList<SizeBudgetEvaluation>)

Section titled “SizeBudgetReport(bool, bool, SizeBasis, long, long, long?, long?, IReadOnlyList<SizeBudgetEvaluation>)”

The outcome of checking a build against a set of size budgets. The check fails — Passed is false — only when an error-severity budget breached; warning breaches surface through HasWarnings without failing the check.

Parameters:

  • Passed (Boolean): False when at least one error-severity budget breached.
  • HasWarnings (Boolean): True when at least one warning-severity budget breached.
  • TotalBasis (SizeBasis): What the total figures count: file size when the inputs were binaries, mstat totals otherwise.
  • LeftTotal (Int64): The baseline total on TotalBasis, or 0 when the check ran without a baseline.
  • RightTotal (Int64): The current total on TotalBasis.
  • LeftMstatTotal (Nullable<Int64>): The baseline’s mstat attributable total, surfaced alongside when TotalBasis is file size; null otherwise.
  • RightMstatTotal (Nullable<Int64>): The current build’s mstat attributable total, surfaced alongside when TotalBasis is file size; null otherwise.
  • Evaluations (IReadOnlyList<SizeBudgetEvaluation>): One outcome per budget, in input order.
public SizeBudgetReport(bool Passed, bool HasWarnings, SizeBasis TotalBasis, long LeftTotal, long RightTotal, long? LeftMstatTotal, long? RightMstatTotal, IReadOnlyList<SizeBudgetEvaluation> Evaluations)

One outcome per budget, in input order.

Returns: IReadOnlyList<SizeBudgetEvaluation>

public IReadOnlyList<SizeBudgetEvaluation> Evaluations { get; init; }

True when at least one warning-severity budget breached.

Returns: Boolean

public bool HasWarnings { get; init; }

The baseline’s mstat attributable total, surfaced alongside when TotalBasis is file size; null otherwise.

Returns: Nullable<Int64>

public long? LeftMstatTotal { get; init; }

The baseline total on TotalBasis, or 0 when the check ran without a baseline.

Returns: Int64

public long LeftTotal { get; init; }

False when at least one error-severity budget breached.

Returns: Boolean

public bool Passed { get; init; }

The current build’s mstat attributable total, surfaced alongside when TotalBasis is file size; null otherwise.

Returns: Nullable<Int64>

public long? RightMstatTotal { get; init; }

The current total on TotalBasis.

Returns: Int64

public long RightTotal { get; init; }

What the total figures count: file size when the inputs were binaries, mstat totals otherwise.

Returns: SizeBasis

public SizeBasis TotalBasis { get; init; }