firefox-devtools/profiler

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

Aperta

#167 aperta il 27 feb 2017

 (7 commenti) (0 reazioni) (0 assegnatari)TypeScript (486 fork)auto 404
help wanted

Metriche repository

Star
 (1515 stelle)
Metriche merge PR
 (Metriche PR in attesa)

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

Guida contributor