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 NativeAotPayloadBuilderInheritance
Section titled “Inheritance”Object → NativeAotPayloadBuilder
Methods
Section titled “Methods”BuildInfo(AssemblyAnalyzer)
Section titled “BuildInfo(AssemblyAnalyzer)”Builds a Native AOT identity and sidecar summary for an analyzer.
Parameters:
analyzer(AssemblyAnalyzer):
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:
analyzer(AssemblyAnalyzer):maxResults(Nullable<Int32>):
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:
analyzer(AssemblyAnalyzer):query(String):maxResults(Nullable<Int32>):includeCompilerGenerated(Boolean):
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:
analyzer(AssemblyAnalyzer):typeName(String):query(String):maxResults(Nullable<Int32>):
Returns: Object
public static object BuildMethodInventory(AssemblyAnalyzer analyzer, string? typeName, string? query, int? maxResults)BuildSections(AssemblyAnalyzer)
Section titled “BuildSections(AssemblyAnalyzer)”Builds the Native AOT ReadyToRun module-section table payload.
Parameters:
analyzer(AssemblyAnalyzer):
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:
source(MstatSource):query(String):section(String):assemblyName(String):namespaceName(String):topN(Nullable<Int32>):includeWhy(Boolean):maxWhyChains(Nullable<Int32>):
Returns: Object
public static object BuildSizeContributors(MstatSource source, string? query, string? section, string? assemblyName, string? namespaceName, int? topN, bool includeWhy, int? maxWhyChains)BuildWhy(MstatSource, string, int?, int?)
Section titled “BuildWhy(MstatSource, string, int?, int?)”Builds a Native AOT DGML explanation for one mstat contributor target.
Parameters:
source(MstatSource):target(String):maxCandidates(Nullable<Int32>):maxWhyChains(Nullable<Int32>):
Returns: Object
public static object BuildWhy(MstatSource source, string target, int? maxCandidates, int? maxWhyChains)ResolveMstatSource(AssemblyAnalyzer)
Section titled “ResolveMstatSource(AssemblyAnalyzer)”Resolves a Native AOT analyzer’s mstat source, or null when no size report exists.
Parameters:
analyzer(AssemblyAnalyzer):
Returns: MstatSource
public static MstatSource? ResolveMstatSource(AssemblyAnalyzer analyzer)Fields
Section titled “Fields”DefaultMaxCandidates
Section titled “DefaultMaxCandidates”The default candidate count returned for ambiguous Native AOT why queries.
Returns: Int32
public const int DefaultMaxCandidates = 20DefaultMaxWhyChains
Section titled “DefaultMaxWhyChains”The default number of DGML chains shown for an aggregate mstat entry.
Returns: Int32
public const int DefaultMaxWhyChains = 3DefaultTopN
Section titled “DefaultTopN”The default number of size contributors returned by Native AOT size tools.
Returns: Int32
public const int DefaultTopN = 20