firefox-devtools / firefox-devtools/profiler

C++-demangle JS function names for emscripten'd code

オープン
#167 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
help wanted
主要言語
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

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

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