Skip to content

NativeAotPayloadBuilder

Namespace: Dotsider.Core.Protocol

Assembly: Dotsider.Core.dll

Builds JSON-ready Native AOT payloads shared by direct MCP tools and the diagnostics session protocol, so the two transports return the same facts and error semantics.

public static class NativeAotPayloadBuilder

ObjectNativeAotPayloadBuilder

Builds a Native AOT identity and sidecar summary for an analyzer.

Parameters:

Returns: Object

public static object BuildInfo(AssemblyAnalyzer analyzer)

BuildLargestMethods(AssemblyAnalyzer, int?)

Section titled “BuildLargestMethods(AssemblyAnalyzer, int?)”

Builds largest-method rows, using native mstat data for Native AOT.

Parameters:

Returns: Object

public static object BuildLargestMethods(AssemblyAnalyzer analyzer, int? maxResults)

BuildMemberSearch(AssemblyAnalyzer, string, int?, bool)

Section titled “BuildMemberSearch(AssemblyAnalyzer, string, int?, bool)”

Builds member-search results, falling back to recovered Native AOT metadata.

Parameters:

Returns: Object

public static object BuildMemberSearch(AssemblyAnalyzer analyzer, string query, int? maxResults, bool includeCompilerGenerated)

BuildMethodInventory(AssemblyAnalyzer, string?, string?, int?)

Section titled “BuildMethodInventory(AssemblyAnalyzer, string?, string?, int?)”

Builds method-inventory rows, falling back to recovered Native AOT methods.

Parameters:

Returns: Object

public static object BuildMethodInventory(AssemblyAnalyzer analyzer, string? typeName, string? query, int? maxResults)

Builds the Native AOT ReadyToRun module-section table payload.

Parameters:

Returns: Object

public static object BuildSections(AssemblyAnalyzer analyzer)

BuildSizeContributors(MstatSource, string?, string?, string?, string?, int?, bool, int?)

Section titled “BuildSizeContributors(MstatSource, string?, string?, string?, string?, int?, bool, int?)”

Builds top Native AOT size contributors from an mstat-backed input.

Parameters:

Returns: Object

public static object BuildSizeContributors(MstatSource source, string? query, string? section, string? assemblyName, string? namespaceName, int? topN, bool includeWhy, int? maxWhyChains)

Builds a Native AOT DGML explanation for one mstat contributor target.

Parameters:

Returns: Object

public static object BuildWhy(MstatSource source, string target, int? maxCandidates, int? maxWhyChains)

Resolves a Native AOT analyzer’s mstat source, or null when no size report exists.

Parameters:

Returns: MstatSource

public static MstatSource? ResolveMstatSource(AssemblyAnalyzer analyzer)

The default candidate count returned for ambiguous Native AOT why queries.

Returns: Int32

public const int DefaultMaxCandidates = 20

The default number of DGML chains shown for an aggregate mstat entry.

Returns: Int32

public const int DefaultMaxWhyChains = 3

The default number of size contributors returned by Native AOT size tools.

Returns: Int32

public const int DefaultTopN = 20