firefox-devtools / firefox-devtools/profiler
C++-demangle JS function names for emscripten'd code
- Lingua principale
- TypeScript
- Stelle
- 1.5k
- Fork
- 491
- Merge medio
- 3g 5h
- PR unite (30g)
- 30
Descrizione
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)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
No source file or test is named in the issue; start by locating the profiler code that formats JavaScript function names and review how the npm demangle module fits there. Done means the mangled emscripten example appears as ShaderConstantBuffer::SetFloat3(int, math::float3 const&) in profile output.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, typescript
- Ambito
- performance
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100