Skip to content

MstatLocator

Namespace: Dotsider.Core.Analysis

Assembly: Dotsider.Core.dll

Resolves a size-comparison input to its mstat report. A bare .mstat file is read directly (detected by extension or by String) — an mstat is itself a valid ECMA-335 assembly, so probing must come before any managed-assembly interpretation); a Native AOT binary resolves through its sidecar discovery (app.mstat beside the binary, or the ILC intermediate output tree). Anything else — a managed assembly, a native binary without a size report — resolves to null.

public static class MstatLocator

ObjectMstatLocator

Resolves a file to its mstat report, or null when the file is not mstat-backed.

Parameters:

  • filePath (String): A .mstat file or a Native AOT binary.

Returns: MstatSource

The resolved source, or null.

public static MstatSource? Resolve(string filePath)