Skip to content

MstatSource

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

A resolved mstat input: the decoded report plus where it came from. Produced by MstatLocator from either a bare .mstat file or a Native AOT binary with a size-report sidecar.

public sealed record MstatSource : IEquatable<MstatSource>

ObjectMstatSource

MstatSource(MstatData, string, string?, long?, string?)

Section titled “MstatSource(MstatData, string, string?, long?, string?)”

A resolved mstat input: the decoded report plus where it came from. Produced by MstatLocator from either a bare .mstat file or a Native AOT binary with a size-report sidecar.

Parameters:

  • Data (MstatData): The decoded size report.
  • MstatPath (String): The path of the .mstat file the report was read from.
  • BinaryPath (String): The Native AOT binary the report describes, or null when the input was a bare .mstat.
  • BinaryFileSize (Nullable<Int64>): The binary’s size on disk in bytes, or null when the input was a bare .mstat.
  • DgmlPath (String): The ILC dependency graph (DGML) found beside the input, or null when none exists — “why is this in my binary” needs it.
public MstatSource(MstatData Data, string MstatPath, string? BinaryPath, long? BinaryFileSize, string? DgmlPath)

The binary’s size on disk in bytes, or null when the input was a bare .mstat.

Returns: Nullable<Int64>

public long? BinaryFileSize { get; init; }

The Native AOT binary the report describes, or null when the input was a bare .mstat.

Returns: String

public string? BinaryPath { get; init; }

The decoded size report.

Returns: MstatData

public MstatData Data { get; init; }

The ILC dependency graph (DGML) found beside the input, or null when none exists — “why is this in my binary” needs it.

Returns: String

public string? DgmlPath { get; init; }

The path of the .mstat file the report was read from.

Returns: String

public string MstatPath { get; init; }

Deconstruct(out MstatData, out string, out string?, out long?, out string?)

Section titled “Deconstruct(out MstatData, out string, out string?, out long?, out string?)”

Parameters:

public void Deconstruct(out MstatData Data, out string MstatPath, out string? BinaryPath, out long? BinaryFileSize, out string? DgmlPath)

Parameters:

Returns: Boolean

public bool Equals(MstatSource? other)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

Parameters:

Returns: Boolean

public static bool operator !=(MstatSource? left, MstatSource? right)

Parameters:

Returns: Boolean

public static bool operator ==(MstatSource? left, MstatSource? right)