Skip to content

Native AOT Diagnostics in .NET 8 #79241

@LakshanF

Description

@LakshanF

Goal: Full Diagnostic Capability in NativeAOT Applications

  • Logging
    • EventSource
      • Runtime library EventSource need to work
      • EventSource events can be read from Windows and Linux platforms
      • Create a plan for general EventSource to work (cut from .NET8). New APIs added in .NET8 to enable primitive payloads to be AOT compliant
    • DiagnosticSource can be used for in-proc logging (no serialization) and as out-proc (with serialization) via the EventSource bridge for Runtime libraries
    • ETW Events
      • GC, Contention, Exception, Heap Snapshot (cut from .NET8), Rundown (cut from .NET8)
  • Diagnostic tool support
    • Following dotnet-* tools need to work
      • dotnet-trace, dotnet-counter, dotnet-monitor
  • Open telemetry Plan
  • Debugging support

Work that is needed in .NET 8 to make the above happen

Potential other improvements:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions