firefox-devtools / firefox-devtools/profiler
C++-demangle JS function names for emscripten'd code
- 主要言語
- TypeScript
- スター
- 1.5k
- フォーク
- 491
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 30
説明
If you compile a C++ project to JS using emscripten, you end up with JS function names like `__ZN20ShaderConstantBuffer9SetFloat3EiRKN4math6float3E`. Profiles of such code can be hard to read. We should run function names through a demangler so that they become readable; in the example that would be `ShaderConstantBuffer::SetFloat3(int, math::float3 const&)`.
There's a `demangle` module on npm that can do this.
┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-117)
コントリビューションガイド
調査の方向性
Issue ではソースファイルもテストも指定されていないため、まず JavaScript 関数名をフォーマットする profiler コードを見つけ、npm demangle モジュールがそこにどのように組み込まれているかを確認してください。mangled emscripten の例がプロファイル出力に ShaderConstantBuffer::SetFloat3(int, math::float3 const\u0026) として表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, typescript
- 領域
- performance
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100