firefox-devtools / firefox-devtools/profiler
C++-demangle JS function names for emscripten'd code
- Langage dominant
- TypeScript
- Étoiles
- 1.5k
- Forks
- 491
- Merge moyen
- 3 j 5 h
- PR mergées (30 j)
- 30
Description
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)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Aucun fichier source ni test n’est nommé dans l’issue ; commencez par localiser le code du profiler qui formate les noms des fonctions JavaScript et examinez comment le module npm demangle s’y intègre. C’est terminé lorsque l’exemple emscripten mangled apparaît dans la sortie du profiler sous la forme ShaderConstantBuffer::SetFloat3(int, math::float3 const\u0026).
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, typescript
- Domaine
- performance
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100