dotnet-gcdump should record symbol metadata for NativeAOT

オープン
#6,052 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
領域
tooling

調査の方向性

Start in the dotnet-gcdump NativeAOT capture path and inspect how existing PDB data is recorded. Trace the platform-specific symbol metadata handling for Mach-O and ELF, then verify that the relevant executable identifiers are captured alongside the existing PE/PDB data.

索引モデルが issue の本文から書いたものです。

説明

enhancement

dotnet-gcdump newly supports capturing GC dumps from NativeAOT apps. Those apps don't include type names which have to be resolved from debug symbols by the viewer.

PerfView currently supports resolving Windows PDB symbols to some extent. I prototyped a Mach-O symbol resolution in dotnet-heapview (https://github.com/1hub/dotnet-heapview/pull/59).

The experience is, unforunately, quite limited since we need to match the correct symbols and we currently lack the data to do so.

Based on platfrom we linkely need to include:

  • Mach-O: Value of LC_UUID from executable linker section.
  • PE/PDB: Likely PDB GUID and age, from the PE’s CodeView RSDS record.
  • ELF: NT_GNU_BUILD_ID/.note.gnu.build-id. Possibly with fallback to .gnu_debuglink.

The current code likely already records the PDB data, so we are missing the Mach-O/ELF counterparts.

主要言語
C++
スター
1.3k
フォーク
407
平均マージ
21時間 5分
マージ済み PR(30日)
78

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/diagnostics のほかの issue

dotnet/diagnostics の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。